]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t4202-log.sh
t: convert tests to not access symrefs via the filesystem
[thirdparty/git.git] / t / t4202-log.sh
index af4a123cd223ef5a3cdff9c97cf6af35abe53854..57b298a4e22aa3d207698fff3e1ea909c0be5461 100755 (executable)
@@ -2265,7 +2265,7 @@ test_expect_success REFFILES 'log diagnoses bogus HEAD hash' '
 
 test_expect_success REFFILES 'log diagnoses bogus HEAD symref' '
        git init empty &&
-       echo "ref: refs/heads/invalid.lock" > empty/.git/HEAD &&
+       test-tool -C empty ref-store main create-symref HEAD refs/heads/invalid.lock &&
        test_must_fail git -C empty log 2>stderr &&
        test_i18ngrep broken stderr &&
        test_must_fail git -C empty log --default totally-bogus 2>stderr &&