]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t6501-freshen-objects.sh
Merge branch 'ea/blame-use-oideq'
[thirdparty/git.git] / t / t6501-freshen-objects.sh
index f30b4849b64ea8bd79a82117333b0f7f225def63..8a3bb4105bf9412b730158ebb55ed268e749a812 100755 (executable)
@@ -128,9 +128,9 @@ for repack in '' true; do
 done
 
 test_expect_success 'do not complain about existing broken links (commit)' '
-       cat >broken-commit <<-\EOF &&
-       tree 0000000000000000000000000000000000000001
-       parent 0000000000000000000000000000000000000002
+       cat >broken-commit <<-EOF &&
+       tree $(test_oid 001)
+       parent $(test_oid 002)
        author whatever <whatever@example.com> 1234 -0000
        committer whatever <whatever@example.com> 1234 -0000
 
@@ -143,8 +143,8 @@ test_expect_success 'do not complain about existing broken links (commit)' '
 '
 
 test_expect_success 'do not complain about existing broken links (tree)' '
-       cat >broken-tree <<-\EOF &&
-       100644 blob 0000000000000000000000000000000000000003    foo
+       cat >broken-tree <<-EOF &&
+       100644 blob $(test_oid 003)     foo
        EOF
        tree=$(git mktree --missing <broken-tree) &&
        git gc -q 2>stderr &&
@@ -153,8 +153,8 @@ test_expect_success 'do not complain about existing broken links (tree)' '
 '
 
 test_expect_success 'do not complain about existing broken links (tag)' '
-       cat >broken-tag <<-\EOF &&
-       object 0000000000000000000000000000000000000004
+       cat >broken-tag <<-EOF &&
+       object $(test_oid 004)
        type commit
        tag broken
        tagger whatever <whatever@example.com> 1234 -0000