Skip to content

Commit 6210c67

Browse files
committed
fixup! stash: improve option parsing test coverage
In preparation for a newer patch series. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 1acc1e9 commit 6210c67

File tree

1 file changed

+0
-35
lines changed

1 file changed

+0
-35
lines changed

t/t3903-stash.sh

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -444,36 +444,6 @@ test_expect_failure 'stash file to directory' '
444444
test foo = "$(cat file/file)"
445445
'
446446

447-
test_expect_success 'giving too many ref arguments does not modify files' '
448-
git stash clear &&
449-
test_when_finished "git reset --hard HEAD" &&
450-
echo foo >file2 &&
451-
git stash &&
452-
echo bar >file2 &&
453-
git stash &&
454-
test-tool chmtime =123456789 file2 &&
455-
for type in apply pop "branch stash-branch"
456-
do
457-
test_must_fail git stash $type stash@{0} stash@{1} 2>err &&
458-
test_i18ngrep "Too many revisions" err &&
459-
test 123456789 = $(test-tool chmtime -g file2) || return 1
460-
done
461-
'
462-
463-
test_expect_success 'drop: too many arguments errors out (does nothing)' '
464-
git stash list >expect &&
465-
test_must_fail git stash drop stash@{0} stash@{1} 2>err &&
466-
test_i18ngrep "Too many revisions" err &&
467-
git stash list >actual &&
468-
test_cmp expect actual
469-
'
470-
471-
test_expect_success 'show: too many arguments errors out (does nothing)' '
472-
test_must_fail git stash show stash@{0} stash@{1} 2>err 1>out &&
473-
test_i18ngrep "Too many revisions" err &&
474-
test_must_be_empty out
475-
'
476-
477447
test_expect_success 'stash create - no changes' '
478448
git stash clear &&
479449
test_when_finished "git reset --hard HEAD" &&
@@ -509,11 +479,6 @@ test_expect_success 'stash branch - stashes on stack, stash-like argument' '
509479
test $(git ls-files --modified | wc -l) -eq 1
510480
'
511481

512-
test_expect_success 'stash branch complains with no arguments' '
513-
test_must_fail git stash branch 2>err &&
514-
test_i18ngrep "No branch name specified" err
515-
'
516-
517482
test_expect_success 'stash show format defaults to --stat' '
518483
git stash clear &&
519484
test_when_finished "git reset --hard HEAD" &&

0 commit comments

Comments
 (0)