Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
pretty: allow %(trailers) options with explicit value
[gitweb.git]
/
builtin
/
replace.c
diff --git
a/builtin/replace.c
b/builtin/replace.c
index 30a661ea0c71f058cdb8bc7626334cb03747fa7c..a58b9c6d130568602ac7928bd1da4a83724ff4f1 100644
(file)
--- a/
builtin/replace.c
+++ b/
builtin/replace.c
@@
-295,7
+295,7
@@
static int import_object(struct object_id *oid, enum object_type type,
close(fd);
return -1;
}
- if (index_fd(oid, fd, &st, type, NULL, flags) < 0)
+ if (index_fd(
&the_index,
oid, fd, &st, type, NULL, flags) < 0)
return error(_("unable to write object to database"));
/* index_fd close()s fd for us */
}