diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2014-06-06 17:01:45 +0400 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2014-09-30 17:42:32 +0400 |
commit | 3f8942052306a9d62521bdb6e6d5e7636bc5526e (patch) | |
tree | 739988344f450431fec435e2dfde626c75493ec2 /tests/fetchhead | |
parent | a2a23322193eeca5d2912c0b74c5374f8ec21737 (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 'tests/fetchhead')
-rw-r--r-- | tests/fetchhead/nonetwork.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/fetchhead/nonetwork.c b/tests/fetchhead/nonetwork.c index 7b64a6339..c8191c5f5 100644 --- a/tests/fetchhead/nonetwork.c +++ b/tests/fetchhead/nonetwork.c @@ -335,7 +335,7 @@ void test_fetchhead_nonetwork__unborn_with_upstream(void) cl_git_pass(git_remote_set_url(remote, cl_fixture("testrepo.git"))); cl_git_pass(git_remote_save(remote)); - cl_git_pass(git_remote_fetch(remote, NULL, NULL)); + cl_git_pass(git_remote_fetch(remote, NULL, NULL, NULL)); git_remote_free(remote); cl_git_pass(git_repository_fetchhead_foreach(repo, assert_master_for_merge, NULL)); |