summaryrefslogtreecommitdiff
path: root/tests/network/fetchlocal.c
Commit message (Collapse)AuthorAgeFilesLines
* remote: remove live changing of refspecsCarlos Martín Nieto2015-05-131-8/+1
| | | | | | | | | | | | The base refspecs changing can be a cause of confusion as to what is the current base refspec set and complicate saving the remote's configuration. Change `git_remote_add_{fetch,push}()` to update the configuration instead of an instance. This finally makes `git_remote_save()` a no-op, it will be removed in a later commit.
* remote: remove url and pushurl from the save logicCarlos Martín Nieto2015-05-131-2/+2
| | | | | | As a first step in removing the repository-saving logic, don't allow chaning the url or push url from a remote object, but change the configuration on the configuration immediately.
* Remove the callbacks struct from the remoteCarlos Martín Nieto2015-05-131-73/+44
| | | | | | | | | | | | | | Having the setting be different from calling its actions was not a great idea and made for the sake of the wrong convenience. Instead of that, accept either fetch options, push options or the callbacks when dealing with the remote. The fetch options are currently only the callbacks, but more options will be moved from setters and getters on the remote to the options. This does mean passing the same struct along the different functions but the typical use-case will only call git_remote_fetch() or git_remote_push() and so won't notice much difference.
* Remove the signature from ref-modifying functionsCarlos Martín Nieto2015-03-031-18/+18
| | | | | | | | | | The signature for the reflog is not something which changes dynamically. Almost all uses will be NULL, since we want for the repository's default identity to be used, making it noise. In order to allow for changing the identity, we instead provide git_repository_set_ident() and git_repository_ident() which allow a user to override the choice of signature.
* Fix more indentation.David Calavera2015-01-071-1/+1
|
* Fix intentation.David Calavera2015-01-051-1/+1
|
* Load prune configuration when a remote is created.David Calavera2015-01-051-0/+44
|
* Merge pull request #2761 from libgit2/cmn/fetch-pruneEdward Thomson2014-12-301-0/+285
|\ | | | | Remote-tracking branch prunning
| * fetch: plug leaks in the prune testsCarlos Martín Nieto2014-12-141-18/+34
| |
| * fetch: remove the prune setterCarlos Martín Nieto2014-12-141-4/+2
| | | | | | | | | | | | | | | | This option does not get persisted to disk, which makes it different from the rest of the setters. Remove it until we go all the way. We still respect the configuration option, and it's still possible to perform a one-time prune by calling the function.
| * fetch: add test for the other order of overlapping specsCarlos Martín Nieto2014-12-141-0/+9
| |
| * fetch: assert we don't call update tips when there are no upatesCarlos Martín Nieto2014-12-141-0/+12
| | | | | | | | | | | | | | | | | | This is hiding a bug in the prune code, whereby we prune references we shouldn't but don't notice it in the code afterwards because update_tips() recreates them. This means that we do perform changes to the references (and get rid of the reflogs) when we shouldn't.
| * fetch: do set prune when testingCarlos Martín Nieto2014-12-141-0/+1
| | | | | | | | | | We load the remote again, so we need to ask the new remote to prune the refs, or we're not exercising the code in our tests.
| * Make sure that `fetch --prune --tags` doesn't remove tags.David Calavera2014-12-141-0/+59
| |
| * Cleanup repository after prune tests.David Calavera2014-12-141-19/+14
| |
| * Cleanup after testing remote prune.David Calavera2014-12-141-3/+6
| |
| * Fix references to git_remote_lookup.David Calavera2014-12-141-6/+6
| |
| * Test that prune overlapping works as expected.David Calavera2014-12-141-0/+64
| |
| * Fix calls to `git_remote_download` and `git_remote_fetch`.David Calavera2014-12-141-6/+6
| |
| * Add test for prune refsLinquize2014-12-141-0/+128
| |
* | local: add failing test for sideband informationCarlos Martín Nieto2014-12-161-0/+34
|/ | | | | | We do not currently generate any messages when we're counting the objects, as might be expected from a local upload-pack. Assert that we do call the function when working.
* remote: rename _load() to _lookup()cmn/remote-lookupCarlos Martín Nieto2014-11-081-2/+2
| | | | This brings it in line with the rest of the lookup functions.
* tests: fix leakCarlos Martín Nieto2014-10-271-0/+1
|
* Fix test repo dir not deleted after runningLinquize2014-10-271-1/+1
|
* Fix test buildCarlos Martín Nieto2014-10-101-2/+2
| | | | | Some PRs have fallen out of sync with the changes in signatures, so we need to take a few extra parameters into account.
* Merge pull request #2542 from linquize/fetch-headCarlos Martín Nieto2014-10-101-0/+34
|\ | | | | Do not error out when fetching from second remote
| * Add network::fetchlocal multi remotes testLinquize2014-09-021-0/+34
| |
* | remote: allow overriding the refspecs for download and fetchCarlos Martín Nieto2014-09-301-2/+2
|/ | | | | | | 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.
* clone: remote git_clone_into{,_local} from the public APIcmn/clone-custom-repoCarlos Martín Nieto2014-07-021-10/+25
| | | | | | As git_clone now has callbacks to configure the details of the repository and remote, remove the lower-level functions from the public API, as they lack some of the logic from git_clone proper.
* clone: add failing test for a mirror-clone with clone_intoCarlos Martín Nieto2014-05-191-0/+26
| | | | | Show a failure to perform a mirror-clone from a repository, both local and remote.
* Add reflog parameters to remote apisBen Straub2014-02-041-2/+2
| | | Also added a test for git_remote_fetch.
* Rename tests-clar to testsBen Straub2013-11-141-0/+88