]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t6050-replace.sh
The sixth batch
[thirdparty/git.git] / t / t6050-replace.sh
index e7e64e085ddcfe7d7cf4df844472a6bf456ab079..c80dc10b8f12581842fd3ad09d1dc459e5addbdf 100755 (executable)
@@ -135,7 +135,7 @@ test_expect_success 'tag replaced commit' '
 test_expect_success '"git fsck" works' '
      git fsck master >fsck_master.out &&
      test_i18ngrep "dangling commit $R" fsck_master.out &&
-     test_i18ngrep "dangling tag $(cat .git/refs/tags/mytag)" fsck_master.out &&
+     test_i18ngrep "dangling tag $(git show-ref -s refs/tags/mytag)" fsck_master.out &&
      test -z "$(git fsck)"
 '