Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
git-rerere: detect unparsable conflicts
[gitweb.git]
/
builtin-commit.c
diff --git
a/builtin-commit.c
b/builtin-commit.c
index 90200ed643bcf21f28a66396f0d15db920a5d4c8..a33f43a209efc2abef209b10b55fa2fce1c7ce18 100644
(file)
--- a/
builtin-commit.c
+++ b/
builtin-commit.c
@@
-502,7
+502,8
@@
static int prepare_to_commit(const char *index_file, const char *prefix)
fp = fopen(git_path(commit_editmsg), "w");
if (fp == NULL)
- die("could not open %s", git_path(commit_editmsg));
+ die("could not open %s: %s",
+ git_path(commit_editmsg), strerror(errno));
if (cleanup_mode != CLEANUP_NONE)
stripspace(&sb, 0);