summaryrefslogtreecommitdiff
path: root/tests/online/push.c
Commit message (Collapse)AuthorAgeFilesLines
* 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