diff options
| author | Carlos Martín Nieto <carlos@cmartin.tk> | 2011-08-10 14:46:18 +0200 |
|---|---|---|
| committer | Vicent Marti <tanoku@gmail.com> | 2011-08-18 02:34:09 +0200 |
| commit | cdfd7bd057c3a71bd5731640f04e61e95ac713fe (patch) | |
| tree | 5b0d3e17478f7562beb47e6592845de422d8216a /src/fetch.c | |
| parent | a1be77cd3534c09b0710794a44a0aed6fd6c3e21 (diff) | |
| download | libgit2-cdfd7bd057c3a71bd5731640f04e61e95ac713fe.tar.gz | |
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>
Diffstat (limited to 'src/fetch.c')
| -rw-r--r-- | src/fetch.c | 1 |
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]); |
