diff options
author | René Scharfe <l.s.r@web.de> | 2021-10-07 22:31:58 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-10-07 17:52:26 -0700 |
commit | c8ad9d04c6a51cb5c73ebc9e42b627314eeafe2f (patch) | |
tree | 8e664cc06c40a89b5b86c05c0eeabdcf49385f9d /refs/packed-backend.h | |
parent | read-cache: add verify_path_internal() (diff) | |
download | tgif-c8ad9d04c6a51cb5c73ebc9e42b627314eeafe2f.tar.xz |
read-cache: let verify_path() reject trailing dir separators again
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@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs/packed-backend.h')
0 files changed, 0 insertions, 0 deletions