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>
maint
brian m. carlson5 years agocommitted byJunio C Hamano
@ -90,9 +103,10 @@ test_expect_success 'diff identical, but newly created symlink and file' '
@@ -90,9 +103,10 @@ test_expect_success 'diff identical, but newly created symlink and file' '
'
test_expect_success 'diff different symlink and file' '
cat >expected <<-\EOF &&
new=$(symlink_oid yxyyz) &&
cat >expected <<-EOF &&
diff --git a/frotz b/frotz
index 7c465af..df1db54 120000
index $symlink..$new 120000
--- a/frotz
+++ b/frotz
@@ -1 +1 @@
@ -101,7 +115,7 @@ test_expect_success 'diff different symlink and file' '
@@ -101,7 +115,7 @@ test_expect_success 'diff different symlink and file' '