Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2014-06-06 17:01:45 +0400
committerCarlos Martín Nieto <cmn@dwim.me>2014-09-30 17:42:32 +0400
commit3f8942052306a9d62521bdb6e6d5e7636bc5526e (patch)
tree739988344f450431fec435e2dfde626c75493ec2 /examples/network
parenta2a23322193eeca5d2912c0b74c5374f8ec21737 (diff)
remote: allow overriding the refspecs for download and fetch
With opportunistic ref updates, git has introduced the concept of having base refspecs *and* refspecs that are active for a particular fetch. Let's start by letting the user override the refspecs for download.
Diffstat (limited to 'examples/network')
-rw-r--r--examples/network/fetch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/network/fetch.c b/examples/network/fetch.c
index 8d882095b..ab78fc9bd 100644
--- a/examples/network/fetch.c
+++ b/examples/network/fetch.c
@@ -36,7 +36,7 @@ static void *download(void *ptr)
// Download the packfile and index it. This function updates the
// amount of received data and the indexer stats which lets you
// inform the user about progress.
- if (git_remote_download(data->remote) < 0) {
+ if (git_remote_download(data->remote, NULL) < 0) {
data->ret = -1;
goto exit;
}