dir: convert read_directory to take an index
Signed-off-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
0ef8e169aa
commit
2c1eb10454
@ -1592,7 +1592,7 @@ static int verify_clean_subdirectory(const struct cache_entry *ce,
|
||||
memset(&d, 0, sizeof(d));
|
||||
if (o->dir)
|
||||
d.exclude_per_dir = o->dir->exclude_per_dir;
|
||||
i = read_directory(&d, pathbuf, namelen+1, NULL);
|
||||
i = read_directory(&d, &the_index, pathbuf, namelen+1, NULL);
|
||||
if (i)
|
||||
return o->gently ? -1 :
|
||||
add_rejected_path(o, ERROR_NOT_UPTODATE_DIR, ce->name);
|
||||
|
||||
Reference in New Issue
Block a user