diff options
author | Thomas Gummerer <t.gummerer@gmail.com> | 2017-02-28 20:33:39 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-02-28 14:21:10 -0800 |
commit | 1ada5020b38c520f665259f6d9b3955672b92761 (patch) | |
tree | 542cd628b219a09b528c10f14435ff071c8e6df8 /t/t3903-stash.sh | |
parent | df6bba0937209d679a06addd26975593fef744f2 (diff) | |
download | git-1ada5020b38c520f665259f6d9b3955672b92761.tar.gz |
stash: use stash_push for no verb form
Now that we have stash_push, which accepts pathspec arguments, use
it instead of stash_save in git stash without any additional verbs.
Previously we allowed git stash -- -message, which is no longer allowed
after this patch. Messages starting with a hyphen was allowed since
3c2eb80f, ("stash: simplify defaulting to "save" and reject unknown
options"). However it was never the intent to allow that, but rather it
was allowed accidentally.
Signed-off-by: Thomas Gummerer <t.gummerer@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t3903-stash.sh')
-rwxr-xr-x | t/t3903-stash.sh | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/t/t3903-stash.sh b/t/t3903-stash.sh index f934993263..e875fe8259 100755 --- a/t/t3903-stash.sh +++ b/t/t3903-stash.sh @@ -274,9 +274,7 @@ test_expect_success 'stash --invalid-option' ' git add file2 && test_must_fail git stash --invalid-option && test_must_fail git stash save --invalid-option && - test bar5,bar6 = $(cat file),$(cat file2) && - git stash -- -message-starting-with-dash && - test bar,bar2 = $(cat file),$(cat file2) + test bar5,bar6 = $(cat file),$(cat file2) ' test_expect_success 'stash an added file' ' |