Skip to content

Commit fc5e90b

Browse files
rscharfegitster
authored andcommitted
t3905: show failure to ignore sub-repo
"git stash" used to ignore sub-repositories until 6e77352 (sparse-index: convert from full to sparse, 2021-03-30). Add a test that demonstrates this regression. Reported-by: Robert Leftwich <[email protected]> Signed-off-by: René Scharfe <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8e97852 commit fc5e90b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

t/t3905-stash-include-untracked.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,4 +405,10 @@ test_expect_success 'stash show --include-untracked errors on duplicate files' '
405405
test_i18ngrep "worktree and untracked commit have duplicate entries: tracked" err
406406
'
407407

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+
408414
test_done

0 commit comments

Comments
 (0)