X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=t%2Ft3903-stash.sh;h=5514f74b30aa74fe2bf214e90f9ad8f4da2876e4;hb=6dbdba00ea2175894e1ad7a5e96899b7b087ed1d;hp=e16ad93d2c2718baf62ad90e9fc07187106d9ee4;hpb=ea41cfc4f54f884582dbda307287f12bb1fc15e9;p=git.git diff --git a/t/t3903-stash.sh b/t/t3903-stash.sh index e16ad93d2..5514f74b3 100755 --- a/t/t3903-stash.sh +++ b/t/t3903-stash.sh @@ -208,4 +208,15 @@ test_expect_success 'stash -k' ' test bar,bar4 = $(cat file),$(cat file2) ' +test_expect_success 'stash --invalid-option' ' + echo bar5 > file && + echo bar6 > file2 && + 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_done