]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t5551-http-fetch-smart.sh
Merge branch 'vd/fsck-submodule-url-test'
[thirdparty/git.git] / t / t5551-http-fetch-smart.sh
index 8a41adf1e1f078712a423b0f41541afb1b5f045d..e069737b80b7bd906afa1963f7b818ffac8ed2ca 100755 (executable)
@@ -359,7 +359,9 @@ create_tags () {
 
        # now assign tags to all the dangling commits we created above
        tag=$(perl -e "print \"bla\" x 30") &&
-       sed -e "s|^:\([^ ]*\) \(.*\)$|\2 refs/tags/$tag-\1|" <marks >>packed-refs
+       sed -e "s|^:\([^ ]*\) \(.*\)$|create refs/tags/$tag-\1 \2|" <marks >input &&
+       git update-ref --stdin <input &&
+       rm input
 }
 
 test_expect_success 'create 2,000 tags in the repo' '