Sync with Git 2.16.4
* maint-2.16: Git 2.16.4 Git 2.15.2 Git 2.14.4 Git 2.13.7 verify_path: disallow symlinks in .gitmodules update-index: stat updated files earlier verify_dotfile: mention case-insensitivity in comment verify_path: drop clever fallthrough skip_prefix: add case-insensitive variant is_{hfs,ntfs}_dotgitmodules: add tests is_ntfs_dotgit: match other .git files is_hfs_dotgit: match other .git files is_ntfs_dotgit: use a size_t for traversing string submodule-config: verify submodule names as paths
This commit is contained in:
2
dir.c
2
dir.c
@ -2992,7 +2992,7 @@ void untracked_cache_invalidate_path(struct index_state *istate,
|
||||
{
|
||||
if (!istate->untracked || !istate->untracked->root)
|
||||
return;
|
||||
if (!safe_path && !verify_path(path))
|
||||
if (!safe_path && !verify_path(path, 0))
|
||||
return;
|
||||
invalidate_one_component(istate->untracked, istate->untracked->root,
|
||||
path, strlen(path));
|
||||
|
Reference in New Issue
Block a user