summaryrefslogtreecommitdiff
path: root/commit.h
diff options
context:
space:
mode:
authorLibravatar René Scharfe <l.s.r@web.de>2021-10-07 22:31:58 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-10-07 17:52:26 -0700
commitc8ad9d04c6a51cb5c73ebc9e42b627314eeafe2f (patch)
tree8e664cc06c40a89b5b86c05c0eeabdcf49385f9d /commit.h
parentread-cache: add verify_path_internal() (diff)
downloadtgif-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 'commit.h')
0 files changed, 0 insertions, 0 deletions