Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2007-11-18 23:21:17 +0300
committerJunio C Hamano <gitster@pobox.com>2007-11-23 04:05:04 +0300
commite06ad5ffb9f8d4207d676fadd675cf1b949ce358 (patch)
tree411adceae9edb72518d2344eddcf450305f64bf6 /builtin-commit.c
parentbc5d248a9fba11cb78dd0a3a91938d881dec1245 (diff)
builtin-commit: run commit-msg hook with correct message file
It should run with $GIT_DIR/COMMIT_EDITMSG, not just COMMIT_EDITMSG. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-commit.c')
-rw-r--r--builtin-commit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-commit.c b/builtin-commit.c
index 7616dd152f..cd2f5cad1d 100644
--- a/builtin-commit.c
+++ b/builtin-commit.c
@@ -598,7 +598,7 @@ int cmd_commit(int argc, const char **argv, const char *prefix)
launch_editor(git_path(commit_editmsg), &sb);
else if (strbuf_read_file(&sb, git_path(commit_editmsg), 0) < 0)
die("could not read commit message\n");
- if (run_hook(index_file, "commit-msg", commit_editmsg))
+ if (run_hook(index_file, "commit-msg", git_path(commit_editmsg)))
exit(1);
stripspace(&sb, 1);
if (sb.len < header_len ||