t3905: show failure to ignore sub-repo

"git stash" used to ignore sub-repositories until 6e773527b6 (sparse-index: convert from full to sparse, 2021-03-30). Add a test that demonstrates this regression. Reported-by: Robert Leftwich <robert@gitpod.io> Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

René Scharfe committed Oct 7, 2021 at 22:31 UTC fc5e90b848e07cc3b8b0e590dbd261ee1b40ffb8
1 file changed +6
t/t3905-stash-include-untracked.sh
+6
@@ -405,4 +405,10 @@ test_expect_success 'stash show --include-untracked errors on duplicate files' '
405 test_i18ngrep "worktree and untracked commit have duplicate entries: tracked" err
406 '
407
408 +test_expect_failure 'stash -u ignores sub-repository' '
409 + test_when_finished "rm -rf sub-repo" &&
410 + git init sub-repo &&
411 + git stash -u
412 +'
413 +
414 test_done