| test_description='basic git gc tests |
| test_expect_success 'gc empty repository' ' |
| test_expect_success 'gc does not leave behind pid file' ' |
| test_path_is_missing .git/gc.pid |
| test_expect_success 'gc --gobbledegook' ' |
| test_expect_code 129 git gc --nonsense 2>err && |
| test_i18ngrep "[Uu]sage: git gc" err |
| test_expect_success 'gc -h with invalid configuration' ' |
| echo "[gc] pruneexpire = CORRUPT" >>.git/config && |
| test_expect_code 129 git gc -h >usage 2>&1 |
| test_i18ngrep "[Uu]sage" broken/usage |
| test_expect_success 'gc is not aborted due to a stale symref' ' |