]> git.proxmox.com Git - libgit2.git/commitdiff
Use time sorting in fetch
authorCarlos Martín Nieto <carlos@cmartin.tk>
Wed, 10 Aug 2011 12:46:18 +0000 (14:46 +0200)
committerVicent Marti <tanoku@gmail.com>
Thu, 18 Aug 2011 00:34:09 +0000 (02:34 +0200)
This is what the docs say tha we should use.

Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
src/fetch.c

index ccc8aa03c11d13fff0a40521cf4185326bda1801..044d4c9cc2f1fb454289859e3c59cb1ae4e9ca8d 100644 (file)
@@ -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]);