Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'bc/fix-cherry-pick-root' into maint
[gitweb.git]
/
builtin
/
revert.c
diff --git
a/builtin/revert.c
b/builtin/revert.c
index 4b47ace36b51566acb5b748f679070f02cbbf568..57b51e4a0e148062e1945d640b81559d65e4c2ba 100644
(file)
--- a/
builtin/revert.c
+++ b/
builtin/revert.c
@@
-442,7
+442,7
@@
static int do_pick_commit(void)
else
parent = commit->parents->item;
- if (allow_ff && !hashcmp(parent->object.sha1, head))
+ if (allow_ff &&
parent &&
!hashcmp(parent->object.sha1, head))
return fast_forward_to(commit->object.sha1, head);
if (parent && parse_commit(parent) < 0)