diff options
author | David Turner <dturner@twopensource.com> | 2015-08-19 20:01:25 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-08-19 10:40:24 -0700 |
commit | 2e5910f27695b1b24e8a6870940bfac2a03ef0d7 (patch) | |
tree | 84c5f7ab90fde4b29bbb32f1214bc9e0a9027cc2 /t/t1008-read-tree-overlay.sh | |
parent | t7063: use --force-untracked-cache to speed up a bit (diff) | |
download | tgif-2e5910f27695b1b24e8a6870940bfac2a03ef0d7.tar.xz |
untracked-cache: fix subdirectory handling
Previously, some calls lookup_untracked would pass a full path. But
lookup_untracked assumes that the portion of the path up to and
including to the untracked_cache_dir has been removed. So
lookup_untracked would be looking in the untracked_cache for 'foo' for
'foo/bar' (instead of just looking for 'bar'). This would cause
untracked cache corruption.
Instead, treat_directory learns to track the base length of the parent
directory, so that only the last path component is passed to
lookup_untracked.
Helped-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: David Turner <dturner@twopensource.com>
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1008-read-tree-overlay.sh')
0 files changed, 0 insertions, 0 deletions