receive/send-pack: support pushing from a shallow clone
[gitweb.git] / t / t6500-gc.sh
index 82f363993712d2c0de44de6285f956b46e1ceaf2..63194d819efe07af241573662c660e6e92b503f5 100755 (executable)
@@ -9,9 +9,14 @@ test_expect_success 'gc empty repository' '
        git gc
 '
 
+test_expect_success 'gc does not leave behind pid file' '
+       git gc &&
+       test_path_is_missing .git/gc.pid
+'
+
 test_expect_success 'gc --gobbledegook' '
        test_expect_code 129 git gc --nonsense 2>err &&
-       grep "[Uu]sage: git gc" err
+       test_i18ngrep "[Uu]sage: git gc" err
 '
 
 test_expect_success 'gc -h with invalid configuration' '
@@ -22,7 +27,7 @@ test_expect_success 'gc -h with invalid configuration' '
                echo "[gc] pruneexpire = CORRUPT" >>.git/config &&
                test_expect_code 129 git gc -h >usage 2>&1
        ) &&
-       grep "[Uu]sage" broken/usage
+       test_i18ngrep "[Uu]sage" broken/usage
 '
 
 test_done