diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-03-04 15:02:27 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-03-04 15:02:27 -0800 |
commit | 5cb3c9b7dff15f762d63df0b6f2d6b4bf82565e9 (patch) | |
tree | e680e8e07351059a97739564f23ef38ec97c7716 /builtin/commit.c | |
parent | 1538f21bfb33dcaa65fe84b9823a8963bf1e6443 (diff) | |
parent | 2140b14064ffe6b12ba6818b2894d1461a943fb9 (diff) | |
download | git-5cb3c9b7dff15f762d63df0b6f2d6b4bf82565e9.tar.gz |
Merge branch 'jn/maint-commit-missing-template'
* jn/maint-commit-missing-template:
commit: error out for missing commit message template
Diffstat (limited to 'builtin/commit.c')
-rw-r--r-- | builtin/commit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/commit.c b/builtin/commit.c index 355b2cbca7..d71e1e0c9c 100644 --- a/builtin/commit.c +++ b/builtin/commit.c @@ -634,7 +634,7 @@ static int prepare_to_commit(const char *index_file, const char *prefix, if (strbuf_read_file(&sb, git_path("SQUASH_MSG"), 0) < 0) die_errno("could not read SQUASH_MSG"); hook_arg1 = "squash"; - } else if (template_file && !stat(template_file, &statbuf)) { + } else if (template_file) { if (strbuf_read_file(&sb, template_file, 0) < 0) die_errno("could not read '%s'", template_file); hook_arg1 = "template"; |