Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
submodule: try harder to fetch needed sha1 by direct fetching sha1
[gitweb.git]
/
builtin
/
commit.c
diff --git
a/builtin/commit.c
b/builtin/commit.c
index d054f849606b248a82f7b29103308feab36ca9e9..89bf6ad38abbbee068ca29bad2ce2a4b728fa388 100644
(file)
--- a/
builtin/commit.c
+++ b/
builtin/commit.c
@@
-761,7
+761,7
@@
static int prepare_to_commit(const char *index_file, const char *prefix,
hook_arg2 = "";
}
- s->fp = fopen
(git_path(commit_editmsg), "w"
);
+ s->fp = fopen
_for_writing(git_path(commit_editmsg)
);
if (s->fp == NULL)
die_errno(_("could not open '%s'"), git_path(commit_editmsg));