aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--epoch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epoch.c b/epoch.c
index 7888f1da4..01fe8e4da 100644
--- a/epoch.c
+++ b/epoch.c
@@ -606,7 +606,7 @@ int sort_list_in_merge_order(struct commit_list *list, emitter_func emitter)
while (reversed) {
struct commit * next = pop_commit(&reversed);
- if (!(next->object.flags & VISITED)) {
+ if (!(next->object.flags & VISITED) && next!=base) {
sort_first_epoch(next, &stack);
if (reversed) {
/*