Commit cdfd7bd057c3a71bd5731640f04e61e95ac713fe

Carlos Martín Nieto 2011-08-10T14:46:18

Use time sorting in fetch This is what the docs say tha we should use. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/fetch.c b/src/fetch.c
index ccc8aa0..044d4c9 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]);