Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
ws.c: remove implicit dependency on the_index
[gitweb.git]
/
builtin
/
update-index.c
diff --git
a/builtin/update-index.c
b/builtin/update-index.c
index fe84003b4fa05c377bb4ab1de04a7cd1c9ae4d5d..3086212fdb8ffbed6ccebedba9cd344d0bc761a7 100644
(file)
--- a/
builtin/update-index.c
+++ b/
builtin/update-index.c
@@
-282,7
+282,7
@@
static int add_one_path(const struct cache_entry *old, const char *path, int len
fill_stat_cache_info(ce, st);
ce->ce_mode = ce_mode_from_stat(old, st->st_mode);
- if (index_path(&ce->oid, path, st,
+ if (index_path(&
the_index, &
ce->oid, path, st,
info_only ? 0 : HASH_WRITE_OBJECT)) {
discard_cache_entry(ce);
return -1;