]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t1410-reflog.sh
Merge branch 'vd/fsck-submodule-url-test'
[thirdparty/git.git] / t / t1410-reflog.sh
index 09e7f3cdac8afcfebdf0558cd12159b7e367e26f..a0ff8d51f04b2d9ad34060a4f42290577d6673f7 100755 (executable)
@@ -29,7 +29,7 @@ check_fsck () {
        '')
                test_must_be_empty fsck.output ;;
        *)
-               test_i18ngrep "$1" fsck.output ;;
+               test_grep "$1" fsck.output ;;
        esac
 }
 
@@ -308,9 +308,9 @@ test_expect_success 'git reflog expire unknown reference' '
        test_config gc.reflogexpireunreachable never &&
 
        test_must_fail git reflog expire main@{123} 2>stderr &&
-       test_i18ngrep "points nowhere" stderr &&
+       test_grep "points nowhere" stderr &&
        test_must_fail git reflog expire does-not-exist 2>stderr &&
-       test_i18ngrep "points nowhere" stderr
+       test_grep "points nowhere" stderr
 '
 
 test_expect_success 'checkout should not delete log for packed ref' '
@@ -469,11 +469,11 @@ test_expect_success 'expire one of multiple worktrees' '
        )
 '
 
-test_expect_success REFFILES 'empty reflog' '
+test_expect_success 'empty reflog' '
        test_when_finished "rm -rf empty" &&
        git init empty &&
        test_commit -C empty A &&
-       >empty/.git/logs/refs/heads/foo &&
+       test-tool ref-store main create-reflog refs/heads/foo &&
        git -C empty reflog expire --all 2>err &&
        test_must_be_empty err
 '