t1011: fix sparse-checkout initialization and add new file
[gitweb.git] / t / t3903-stash.sh
index a27d778624c1fe8ca39038f5913eb34a822b23a3..5c725406422dcedb6c6d5e5d61cfc80f87d3595c 100755 (executable)
@@ -236,6 +236,14 @@ test_expect_success 'stash -k' '
        test bar,bar4 = $(cat file),$(cat file2)
 '
 
+test_expect_success 'stash --no-keep-index' '
+       echo bar33 > file &&
+       echo bar44 > file2 &&
+       git add file2 &&
+       git stash --no-keep-index &&
+       test bar,bar2 = $(cat file),$(cat file2)
+'
+
 test_expect_success 'stash --invalid-option' '
        echo bar5 > file &&
        echo bar6 > file2 &&