mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-03 14:38:08 +00:00
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>
This commit is contained in:
parent
a1be77cd35
commit
cdfd7bd057
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user