Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'sb/blame-config-doc' into maint
[gitweb.git]
/
builtin
/
commit.c
diff --git
a/builtin/commit.c
b/builtin/commit.c
index d75b3805ea7fe3475564f337bf660d8155909445..b2a6c7f100d82c4160c4bea6b4663af5459194cc 100644
(file)
--- a/
builtin/commit.c
+++ b/
builtin/commit.c
@@
-1492,6
+1492,8
@@
static void print_summary(const char *prefix, const struct object_id *oid,
diff_setup_done(&rev.diffopt);
head = resolve_ref_unsafe("HEAD", 0, NULL, NULL);
+ if (!head)
+ die_errno(_("unable to resolve HEAD after creating commit"));
if (!strcmp(head, "HEAD"))
head = _("detached HEAD");
else