]> asedeno.scripts.mit.edu Git - git.git/blobdiff - t/t3903-stash.sh
Merge branch 'jc/maint-blank-at-eof' into maint
[git.git] / t / t3903-stash.sh
index e16ad93d2c2718baf62ad90e9fc07187106d9ee4..5514f74b30aa74fe2bf214e90f9ad8f4da2876e4 100755 (executable)
@@ -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