]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t3903-stash.sh
Merge branch 'js/update-index-ignore-removal-for-skip-worktree'
[thirdparty/git.git] / t / t3903-stash.sh
index 580bfbdc23f4924cea78358629e09a974ad6aa6c..a4da72f0ab4453451309bbdbafd24a0eee423a88 100755 (executable)
@@ -1269,4 +1269,15 @@ test_expect_success 'stash apply should succeed with unmodified file' '
        git stash apply
 '
 
+test_expect_success 'stash handles skip-worktree entries nicely' '
+       test_commit A &&
+       echo changed >A.t &&
+       git add A.t &&
+       git update-index --skip-worktree A.t &&
+       rm A.t &&
+       git stash &&
+
+       git rev-parse --verify refs/stash:A.t
+'
+
 test_done