summaryrefslogtreecommitdiff
path: root/src/commit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/commit.c')
-rw-r--r--src/commit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/commit.c b/src/commit.c
index 02e741c6f..a39920830 100644
--- a/src/commit.c
+++ b/src/commit.c
@@ -374,6 +374,7 @@ void git_commit_list_timesort(git_commit_list *list)
else
list->head = e;
+ e->prev = list->tail;
list->tail = e;
}
@@ -413,7 +414,7 @@ void git_commit_list_toposort(git_commit_list *list)
}
}
- git_commit_list_push_front(&topo, commit);
+ git_commit_list_push_back(&topo, commit);
}
list->head = topo.head;