summaryrefslogtreecommitdiff
path: root/unpack-trees.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-07-10 20:18:37 -0700
committerJunio C Hamano <gitster@pobox.com>2009-07-10 20:18:37 -0700
commit20f3749977c0ea48538553dcd85b7cd445d43415 (patch)
tree741ede36013b66f4ea3ee3521fcf0fbcca73ca50 /unpack-trees.c
parent73ccb916e4e733745e1361739b07f1ef3e97ae6b (diff)
parentf62ce3de9dd4803f50f65e17f5fc03c7bdb49c40 (diff)
downloadgit-20f3749977c0ea48538553dcd85b7cd445d43415.tar.gz
Merge branch 'lt/dir-cleanup'
* lt/dir-cleanup: Make index preloading check the whole path to the file Export thread-safe version of 'has_symlink_leading_path()' Prepare symlink caching for thread-safety Avoid using 'lstat()' to figure out directories Avoid doing extra 'lstat()'s for d_type if we have an up-to-date cache entry Simplify read_directory[_recursive]() arguments Add 'fill_directory()' helper function for directory traversal
Diffstat (limited to 'unpack-trees.c')
-rw-r--r--unpack-trees.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unpack-trees.c b/unpack-trees.c
index 05d0bb1f85..42c7d7d563 100644
--- a/unpack-trees.c
+++ b/unpack-trees.c
@@ -551,7 +551,7 @@ static int verify_clean_subdirectory(struct cache_entry *ce, const char *action,
memset(&d, 0, sizeof(d));
if (o->dir)
d.exclude_per_dir = o->dir->exclude_per_dir;
- i = read_directory(&d, ce->name, pathbuf, namelen+1, NULL);
+ i = read_directory(&d, pathbuf, namelen+1, NULL);
if (i)
return o->gently ? -1 :
error(ERRORMSG(o, not_uptodate_dir), ce->name);