submodule sync: skip work for inactive submodules
[gitweb.git] / t / t3903-stash.sh
index e875fe8259218387a1fafd8030570ac0b33a2477..89877e4b52a4aa09b1e1925005a1a09826e2c7a0 100755 (executable)
@@ -892,4 +892,19 @@ test_expect_success 'untracked files are left in place when -u is not given' '
        test_path_is_file untracked
 '
 
+test_expect_success 'stash without verb with pathspec' '
+       >"foo bar" &&
+       >foo &&
+       >bar &&
+       git add foo* &&
+       git stash -- "foo b*" &&
+       test_path_is_missing "foo bar" &&
+       test_path_is_file foo &&
+       test_path_is_file bar &&
+       git stash pop &&
+       test_path_is_file "foo bar" &&
+       test_path_is_file foo &&
+       test_path_is_file bar
+'
+
 test_done