]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t1506-rev-parse-diagnosis.sh
The sixth batch
[thirdparty/git.git] / t / t1506-rev-parse-diagnosis.sh
index 52edcbdcc3272ed34854017680430e14796a04a1..dbf690b9c1ba492dff629ac75c9cadd5d4887095 100755 (executable)
@@ -207,7 +207,7 @@ test_expect_success 'arg before dashdash must be a revision (ambiguous)' '
        {
                # we do not want to use rev-parse here, because
                # we are testing it
-               cat .git/refs/heads/foobar &&
+               git show-ref -s refs/heads/foobar &&
                printf "%s\n" --
        } >expect &&
        git rev-parse foobar -- >actual &&