diff options
Diffstat (limited to 't')
-rwxr-xr-x | t/t5304-prune.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/t/t5304-prune.sh b/t/t5304-prune.sh index 6694c19a1e..af69cdc112 100755 --- a/t/t5304-prune.sh +++ b/t/t5304-prune.sh @@ -320,4 +320,14 @@ test_expect_success 'prune: handle HEAD reflog in multiple worktrees' ' test_cmp expected actual ' +test_expect_success 'prune: handle expire option correctly' ' + test_must_fail git prune --expire 2>error && + test_i18ngrep "requires a value" error && + + test_must_fail git prune --expire=nyah 2>error && + test_i18ngrep "malformed expiration" error && + + git prune --no-expire +' + test_done |