Sync with Git 2.14.4
[gitweb.git] / builtin / commit.c
index b2a6c7f100d82c4160c4bea6b4663af5459194cc..be370f64a995804ec6b62e03f7c6940044e08e24 100644 (file)
@@ -1730,7 +1730,7 @@ int cmd_commit(int argc, const char **argv, const char *prefix)
                                allow_fast_forward = 0;
                }
                if (allow_fast_forward)
-                       parents = reduce_heads(parents);
+                       reduce_heads_replace(&parents);
        } else {
                if (!reflog_msg)
                        reflog_msg = (whence == FROM_CHERRY_PICK)