From cdfd7bd057c3a71bd5731640f04e61e95ac713fe Mon Sep 17 00:00:00 2001 From: =?utf8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Wed, 10 Aug 2011 14:46:18 +0200 Subject: [PATCH] Use time sorting in fetch MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This is what the docs say tha we should use. Signed-off-by: Carlos Martín Nieto --- src/fetch.c | 1 + 1 file changed, 1 insertion(+) 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]); -- 2.39.5