about summary refs log tree commit diff
path: root/third_party/git/t/t6050-replace.sh
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/git/t/t6050-replace.sh')
-rwxr-xr-xthird_party/git/t/t6050-replace.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/git/t/t6050-replace.sh b/third_party/git/t/t6050-replace.sh
index e7e64e085ddc..c80dc10b8f12 100755
--- a/third_party/git/t/t6050-replace.sh
+++ b/third_party/git/t/t6050-replace.sh
@@ -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)"
 '