summaryrefslogtreecommitdiff
path: root/tests/network
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Improvements to git_transport extensibilityPhilip Kelley2014-06-261-26/+4
| | | | | git_remote_set_transport now takes a transport factory rather than a transport git_clone_options now allows the caller to specify a remote creation callback
* remote: don't free the remote on deletecmn/remote-rename-moreCarlos Martín Nieto2014-06-061-1/+1
| | | | This was a bad idea. Don't free except in the free function.
* remote: failing test for renaming with a symrefCarlos Martín Nieto2014-06-061-0/+48
|
* remote: return problem refspecs instead of using a callbackCarlos Martín Nieto2014-06-061-37/+53
| | | | | | There is no reason why we need to use a callback here. A string array fits better with the usage, as this is not an event and we don't need anything from the user.
* remote: failing test for renameCarlos Martín Nieto2014-06-061-0/+30
| | | | | When there is a reference in the target namespace, we should overwrite it. Instead it gets a different name under the current code.
* Remote: Set an error when a remote cannot be found.Arthur Schreiber2014-05-301-0/+9
| | | | | | | Inside `git_remote_load`, the calls to `get_optional_config` use `giterr_clear` to unset any errors that are set due to missing config keys. If neither a fetch nor a push url config was found for a remote, we should set an error again.
* remote: add api to guess the remote's default branchCarlos Martín Nieto2014-05-211-0/+50
| | | | | If the remote supports the symref protocol extension, then we return that, otherwise we guess with git's rules.
* Merge pull request #2354 from libgit2/cmn/clone-into-mirrorVicent Marti2014-05-191-0/+26
|\ | | | | Allow mirror-clone via `git_clone_into()`
| * 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.
* | Merge pull request #2313 from libgit2/cmn/remote-deleteVicent Marti2014-05-161-0/+61
|\ \ | |/ |/| Remote deletion
| * remote: remove remote-tracking branches on deleteCarlos Martín Nieto2014-05-161-4/+8
| | | | | | | | | | When we delete a remote, we also need to go through its fetch refspecs and remove the references they create locally.
| * remote: Introduce git_remote_delete()nulltoken2014-04-301-0/+57
| |
* | netops: unit-test the cert host-name pattern matchingCarlos Martín Nieto2014-04-261-0/+13
|/ | | | | This kind of stuff should have unit tests, even if it's just to show what we expect to match successfully.
* remote: rename inmemory to anonymous and swap url and fetch orderCarlos Martín Nieto2014-04-013-9/+9
| | | | | | | | | | The order in this function is the opposite to what create_with_fetchspec() has, so change this one, as url-then-refspec is what git does. As we need to break compilation and the swap doesn't do that, let's take this opportunity to rename in-memory remotes to anonymous as that's really what sets them apart.
* Correct default reflog message for git_remote_fetchBen Straub2014-02-061-0/+28
|
* Add reflog parameters to remote apisBen Straub2014-02-042-8/+63
| | | Also added a test for git_remote_fetch.
* Don't strcmp a git_buf, strcmp its char *Edward Thomson2014-01-291-1/+1
|
* Merge pull request #2077 from libgit2/cmn/buf-outVicent Marti2014-01-271-14/+7
|\ | | | | Buff up returning strings
| * refspec: move to git_buf for outputting stringsCarlos Martín Nieto2014-01-271-14/+7
| |
* | MSVC doesn't like modern codeCarlos Martín Nieto2014-01-271-1/+2
|/
* Make sure git_remote_dup copies a remote's refspecs correctly.Arthur Schreiber2014-01-261-0/+2
|
* Fix a compile warning.Graham Dennis2014-01-181-1/+1
|
* Add test for pushing to a local file:// URL.Graham Dennis2014-01-181-0/+40
|
* Add `git_remote_dup`.Arthur Schreiber2014-01-141-0/+21
|
* Rename tests-clar to testsBen Straub2013-11-149-0/+1390