Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'sg/doc-test-must-fail-args'
[gitweb.git]
/
builtin
/
replace.c
diff --git
a/builtin/replace.c
b/builtin/replace.c
index 814bf6bfdead377b9294611c2fea74a5f35636b7..83d3235721470167d362f64763745d8fb9852d7b 100644
(file)
--- a/
builtin/replace.c
+++ b/
builtin/replace.c
@@
-410,7
+410,7
@@
static int create_graft(int argc, const char **argv, int force)
check_mergetags(commit, argc, argv);
- if (write_
sha1_file(buf.buf, buf.len, commit_type, new.hash
))
+ if (write_
object_file(buf.buf, buf.len, commit_type, &new
))
die(_("could not write replacement commit for: '%s'"), old_ref);
strbuf_release(&buf);