René Scharfe <l.s.r@xxxxxx> writes: > 6e773527b6 (sparse-index: convert from full to sparse, 2021-03-30) made > verify_path() accept trailing directory separators for directories, > which is necessary for sparse directory entries. This clemency causes > "git stash" to stumble over sub-repositories, though, and there may be > more unintended side-effects. > > Avoid them by restoring the old verify_path() behavior and accepting > trailing directory separators only in places that are supposed to handle > sparse directory entries. > > Signed-off-by: René Scharfe <l.s.r@xxxxxx> > --- > read-cache.c | 6 +++--- > t/t3905-stash-include-untracked.sh | 2 +- > 2 files changed, 4 insertions(+), 4 deletions(-) Makes sense. Thanks.