]> git.ipfire.org Git - thirdparty/git.git/blame - t/t6500-gc.sh
Fix tests under GETTEXT_POISON on parseopt
[thirdparty/git.git] / t / t6500-gc.sh
CommitLineData
0c8151b6
NTND
1#!/bin/sh
2
3test_description='basic git gc tests
4'
5
6. ./test-lib.sh
7
8test_expect_success 'gc empty repository' '
9 git gc
10'
11
12test_expect_success 'gc --gobbledegook' '
13 test_expect_code 129 git gc --nonsense 2>err &&
9a001381 14 test_i18ngrep "[Uu]sage: git gc" err
0c8151b6
NTND
15'
16
17test_expect_success 'gc -h with invalid configuration' '
18 mkdir broken &&
19 (
20 cd broken &&
21 git init &&
22 echo "[gc] pruneexpire = CORRUPT" >>.git/config &&
23 test_expect_code 129 git gc -h >usage 2>&1
24 ) &&
9a001381 25 test_i18ngrep "[Uu]sage" broken/usage
0c8151b6
NTND
26'
27
28test_done