]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t3905-stash-include-untracked.sh
Merge branch 'rs/clear-commit-marks-in-repo'
[thirdparty/git.git] / t / t3905-stash-include-untracked.sh
index 597b0637d160be0cab4d3114aace598616e371fd..f075c7f1f3165adc256e0018d26c34e8f7823b96 100755 (executable)
@@ -142,7 +142,7 @@ test_expect_success 'stash save --include-untracked removed files' '
        rm -f file &&
        git stash save --include-untracked &&
        echo 1 > expect &&
-       test_cmp file expect
+       test_cmp expect file
 '
 
 rm -f expect
@@ -277,10 +277,16 @@ test_expect_success 'stash -u -- <ignored> leaves ignored file alone' '
        test_path_is_file ignored.d/bar
 '
 
-test_expect_success 'stash -u -- <non-existant> shows no changes when there are none' '
-       git stash push -u -- non-existant >actual &&
+test_expect_success 'stash -u -- <non-existent> shows no changes when there are none' '
+       git stash push -u -- non-existent >actual &&
        echo "No local changes to save" >expect &&
        test_i18ncmp expect actual
 '
 
+test_expect_success 'stash -u with globs' '
+       >untracked.txt &&
+       git stash -u -- ":(glob)**/*.txt" &&
+       test_path_is_missing untracked.txt
+'
+
 test_done