Last change
on this file since 782 was 782, checked in by dmik, 11 years ago |
git: Merge version 2.0.0 from vendor to dmik branch.
|
File size:
623 bytes
|
Line | |
---|
1 | #!/bin/sh
|
---|
2 |
|
---|
3 | test_description='basic git gc tests
|
---|
4 | '
|
---|
5 |
|
---|
6 | . ./test-lib.sh
|
---|
7 |
|
---|
8 | test_expect_success 'gc empty repository' '
|
---|
9 | git gc
|
---|
10 | '
|
---|
11 |
|
---|
12 | test_expect_success 'gc does not leave behind pid file' '
|
---|
13 | git gc &&
|
---|
14 | test_path_is_missing .git/gc.pid
|
---|
15 | '
|
---|
16 |
|
---|
17 | test_expect_success 'gc --gobbledegook' '
|
---|
18 | test_expect_code 129 git gc --nonsense 2>err &&
|
---|
19 | test_i18ngrep "[Uu]sage: git gc" err
|
---|
20 | '
|
---|
21 |
|
---|
22 | test_expect_success 'gc -h with invalid configuration' '
|
---|
23 | mkdir broken &&
|
---|
24 | (
|
---|
25 | cd broken &&
|
---|
26 | git init &&
|
---|
27 | echo "[gc] pruneexpire = CORRUPT" >>.git/config &&
|
---|
28 | test_expect_code 129 git gc -h >usage 2>&1
|
---|
29 | ) &&
|
---|
30 | test_i18ngrep "[Uu]sage" broken/usage
|
---|
31 | '
|
---|
32 |
|
---|
33 | test_done
|
---|
Note:
See
TracBrowser
for help on using the repository browser.