mirror of
https://github.com/git/git.git
synced 2024-11-27 12:03:55 +08:00
Merge branch 'js/t5534-rev-parse-gives-multi-line-output-fix' into maint
A few tests that tried to verify the contents of push certificates did not use 'git rev-parse' to formulate the line to look for in the certificate correctly. * js/t5534-rev-parse-gives-multi-line-output-fix: t5534: fix misleading grep invocation
This commit is contained in:
commit
5a24b4e14a
@ -119,8 +119,11 @@ test_expect_success GPG 'signed push sends push certificate' '
|
||||
sed -n -e "s/^nonce /NONCE=/p" -e "/^$/q" dst/push-cert
|
||||
) >expect &&
|
||||
|
||||
grep "$(git rev-parse noop ff) refs/heads/ff" dst/push-cert &&
|
||||
grep "$(git rev-parse noop noff) refs/heads/noff" dst/push-cert &&
|
||||
noop=$(git rev-parse noop) &&
|
||||
ff=$(git rev-parse ff) &&
|
||||
noff=$(git rev-parse noff) &&
|
||||
grep "$noop $ff refs/heads/ff" dst/push-cert &&
|
||||
grep "$noop $noff refs/heads/noff" dst/push-cert &&
|
||||
test_cmp expect dst/push-cert-status
|
||||
'
|
||||
|
||||
@ -200,8 +203,11 @@ test_expect_success GPG 'fail without key and heed user.signingkey' '
|
||||
sed -n -e "s/^nonce /NONCE=/p" -e "/^$/q" dst/push-cert
|
||||
) >expect &&
|
||||
|
||||
grep "$(git rev-parse noop ff) refs/heads/ff" dst/push-cert &&
|
||||
grep "$(git rev-parse noop noff) refs/heads/noff" dst/push-cert &&
|
||||
noop=$(git rev-parse noop) &&
|
||||
ff=$(git rev-parse ff) &&
|
||||
noff=$(git rev-parse noff) &&
|
||||
grep "$noop $ff refs/heads/ff" dst/push-cert &&
|
||||
grep "$noop $noff refs/heads/noff" dst/push-cert &&
|
||||
test_cmp expect dst/push-cert-status
|
||||
'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user