summaryrefslogtreecommitdiff
path: root/tests/online/push.c
Commit message (Collapse)AuthorAgeFilesLines
* push: pass the callbacks during setup as wellCarlos Martín Nieto2015-06-121-3/+7
| | | | | We need to pass these options in order to have the credentials callback set.
* remote: remove live changing of refspecsCarlos Martín Nieto2015-05-131-1/+5
| | | | | | | | | | | | 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.
* Remove the callbacks struct from the remoteCarlos Martín Nieto2015-05-131-13/+7
| | | | | | | | | | | | | | 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.
* push: remove reflog message overrideCarlos Martín Nieto2015-03-031-2/+2
| | | | We always use "update by push".
* Remove the signature from ref-modifying functionsCarlos Martín Nieto2015-03-031-6/+3
| | | | | | | | | | 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.
* remote: remove git_push from the public APIcmn/hide-pushCarlos Martín Nieto2014-12-301-28/+16
| | | | | Instead we provide git_remote_upload() and git_remote_update_tips() in order to have a parallel API for fetching and pushing.
* notes: move the notes name argumentCarlos Martín Nieto2014-12-061-2/+2
| | | | | Make it consistent between git_note_create() and git_note_remote() by putting it after the repository.
* Merge pull request #2608 from libgit2/cmn/remote-pushEdward Thomson2014-11-181-58/+85
|\ | | | | Provide a convenience function `git_remote_push()`
| * remote: use configured push refspecs if none are givencmn/remote-pushCarlos Martín Nieto2014-11-091-4/+38
| | | | | | | | | | If the user does not pass any refspecs to push, try to use those configured via the configuration or via add_push().
| * push: move main test function to git_remote_push()Carlos Martín Nieto2014-11-091-59/+52
| | | | | | | | | | | | | | We have the step-by-step method in the initialization function as we want to remove references based on the list of references which are already there, and we can use the convenience function for testing the main push.
* | push: use the common refspec parsercmn/push-refspec-refactorCarlos Martín Nieto2014-11-091-10/+7
|/ | | | | | | | | | | There is one well-known and well-tested parser which we should use, instead of implementing parsing a second time. The common parser is also augmented to copy the LHS into the RHS if the latter is empty. The expressions test had to change a bit, as we now catch a bad RHS of a refspec locally.
* remote: allow overriding the refspecs for download and fetchCarlos Martín Nieto2014-09-301-1/+1
| | | | | | | 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.
* MSVC does not support zero size arrayLinquize2014-08-311-2/+1
|
* Merge remote-tracking branch 'upstream/master' into cmn/ssh-retryCarlos Martín Nieto2014-08-271-0/+11
|\
| * Free references during push validationEdward Thomson2014-08-151-0/+2
| |
| * Remove the refs/notes/commits that we push in testEdward Thomson2014-08-141-0/+9
| | | | | | | | | | | | | | The online::push::notes test pushes a note but leaves it hanging around for other tests to stumble across when they're validating that they're seeing the refs they expect to see. Clean it up on exit.
* | ssh: adjust clone and push test credentials to the split user+pass methodCarlos Martín Nieto2014-06-261-0/+9
|/ | | | | | | For urls where we do not specify a username, we must handle the case where the ssh transport asks us for the username. Test also that switching username fails.
* Verify update_tips callbacks in push test casesJacques Germishuys2014-04-211-35/+83
|
* Clar: skip testsvmg/clar-skip-testVicent Marti2014-04-021-31/+32
|
* Avoid crash when skipping remote testBen Straub2014-02-051-2/+4
|
* Add reflog parameters to remote apisBen Straub2014-02-041-1/+1
| | | Also added a test for git_remote_fetch.
* Add reflog parameters to git_push_update_tipsBen Straub2014-02-041-1/+15
|
* refspec: move to git_buf for outputting stringsCarlos Martín Nieto2014-01-271-1/+1
|
* More tests of canceling from callbacksRussell Belfer2013-12-121-22/+41
| | | | | This covers diff print, push, and ref foreach. This also has a fix for a small memory leak in the push tests.
* Introduce git_cred_default for NTLM/SPNEGO authEdward Thomson2013-11-181-1/+15
|
* Rename tests-clar to testsBen Straub2013-11-141-0/+770