diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2014-06-06 15:01:45 +0200 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2014-09-30 15:42:32 +0200 |
commit | 3f8942052306a9d62521bdb6e6d5e7636bc5526e (patch) | |
tree | 739988344f450431fec435e2dfde626c75493ec2 /examples | |
parent | a2a23322193eeca5d2912c0b74c5374f8ec21737 (diff) | |
download | libgit2-3f8942052306a9d62521bdb6e6d5e7636bc5526e.tar.gz |
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')
-rw-r--r-- | examples/network/fetch.c | 2 |
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; } |