diff options
Diffstat (limited to 'src/revwalk.c')
| -rw-r--r-- | src/revwalk.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/revwalk.c b/src/revwalk.c index 38f40831a..6f49bf2dc 100644 --- a/src/revwalk.c +++ b/src/revwalk.c @@ -83,7 +83,9 @@ int git_revwalk__push_commit(git_revwalk *walk, const git_oid *oid, const git_re commit->uninteresting = opts->uninteresting; list = walk->user_input; - if (git_commit_list_insert(commit, &list) == NULL) { + if ((opts->insert_by_date && + git_commit_list_insert_by_date(commit, &list) == NULL) || + git_commit_list_insert(commit, &list) == NULL) { git_error_set_oom(); return -1; } |
