Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
improve for-each-ref test script
[gitweb.git]
/
builtin-commit.c
diff --git
a/builtin-commit.c
b/builtin-commit.c
index 0a70808280c5366acd5655caf0b081b42e628bb4..e3ad38b3bd78bc2d19c5e5d1ebfbe0388b22582e 100644
(file)
--- a/
builtin-commit.c
+++ b/
builtin-commit.c
@@
-503,7
+503,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);