summaryrefslogtreecommitdiff
path: root/src/fetch.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fetch.c')
-rw-r--r--src/fetch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fetch.c b/src/fetch.c
index ccc8aa03c..044d4c9cc 100644
--- a/src/fetch.c
+++ b/src/fetch.c
@@ -130,6 +130,7 @@ int git_fetch_negotiate(git_remote *remote)
error = git__rethrow(error, "Failed to list all references");
goto cleanup;
}
+ git_revwalk_sorting(walk, GIT_SORT_TIME);
for (i = 0; i < refs.count; ++i) {
error = git_reference_lookup(&ref, repo, refs.strings[i]);