t3201: abstract away SHA-1-specific constants
Adjust the test so that it computes variables for object IDs instead of using hard-coded hashes. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
brian m. carlson committed
Aug 18, 2019 at 19:16 UTC
a5f61c7d131ce0d19bd7ab1a66e8442607b03bff
1 file changed
+4
-4
t/t3201-branch-contains.sh
+4
-4
@@ -192,10 +192,10 @@ test_expect_success 'branch --merged with --verbose' '
192
EOF
193
test_cmp expect actual &&
194
git branch --verbose --merged topic >actual &&
195
- cat >expect <<-\EOF &&
196
- master c77a0a9 second on master
197
- * topic 2c939f4 [ahead 1] foo
198
- zzz c77a0a9 second on master
195
+ cat >expect <<-EOF &&
196
+ master $(git rev-parse --short master) second on master
197
+ * topic $(git rev-parse --short topic ) [ahead 1] foo
198
+ zzz $(git rev-parse --short zzz ) second on master
199
EOF
200
test_i18ncmp expect actual
201
'