diff options
author | Jonathan Nieder <jrnieder@gmail.com> | 2018-07-17 09:54:16 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-07-17 21:19:45 +0300 |
commit | fec2ed21871c73d5212f5c8843d250eb7d5a649c (patch) | |
tree | 7452a86774cffbb532bdabd4a3ae44b58824421e /t/t6500-gc.sh | |
parent | 3c426eccc29e38301774e90adeea336642826b0c (diff) |
gc: exit with status 128 on failure
A value of -1 returned from cmd_gc gets propagated to exit(),
resulting in an exit status of 255. Use die instead for a clearer
error message and a controlled exit.
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t6500-gc.sh')
-rwxr-xr-x | t/t6500-gc.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t6500-gc.sh b/t/t6500-gc.sh index 818435f04e..c474a94a9f 100755 --- a/t/t6500-gc.sh +++ b/t/t6500-gc.sh @@ -117,7 +117,7 @@ test_expect_success 'background auto gc does not run if gc.log is present and re test_config gc.autodetach true && echo fleem >.git/gc.log && test_must_fail git gc --auto 2>err && - test_i18ngrep "^error:" err && + test_i18ngrep "^fatal:" err && test_config gc.logexpiry 5.days && test-tool chmtime =-345600 .git/gc.log && test_must_fail git gc --auto && |