Skip to content

Commit

Permalink
t3201: abstract away SHA-1-specific constants
Browse files Browse the repository at this point in the history
Adjust the test so that it computes variables for object IDs instead of
using hard-coded hashes.

Signed-off-by: brian m. carlson <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
bk2204 authored and gitster committed Aug 20, 2019
1 parent 5fa0f52 commit a5f61c7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions t/t3201-branch-contains.sh
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,10 @@ test_expect_success 'branch --merged with --verbose' '
EOF
test_cmp expect actual &&
git branch --verbose --merged topic >actual &&
cat >expect <<-\EOF &&
master c77a0a9 second on master
* topic 2c939f4 [ahead 1] foo
zzz c77a0a9 second on master
cat >expect <<-EOF &&
master $(git rev-parse --short master) second on master
* topic $(git rev-parse --short topic ) [ahead 1] foo
zzz $(git rev-parse --short zzz ) second on master
EOF
test_i18ncmp expect actual
'
Expand Down

0 comments on commit a5f61c7

Please sign in to comment.