summaryrefslogtreecommitdiff
path: root/tests-clar/network
Commit message (Collapse)AuthorAgeFilesLines
* Rename tests-clar to testsBen Straub2013-11-149-1390/+0
|
* Merge pull request #1951 from victorgp/create-remote-plus-fetchVicent Martí2013-11-141-1/+11
|\ | | | | Allowing create remotes with custom fetch spec
| * splitting funcionality in two methods to avoid ambiguity with NULLVictor Garcia2013-11-082-10/+10
| |
| * adding doc for new param and test to check fetch spec is correctly addedVictor Garcia2013-11-071-1/+11
| |
| * allowing create remote with custom fetch specVictor Garcia2013-11-072-8/+8
| |
* | tests: make a few globals staticsCarlos Martín Nieto2013-11-131-2/+2
| | | | | | | | ld was warning that the size of path changed, rightly so.
* | Merge pull request #1956 from libgit2/cmn/fetch-default-headVicent Martí2013-11-111-30/+21
|\ \ | | | | | | Remote revamp (director's cut)
| * | remote: make _ls return the list directlyCarlos Martín Nieto2013-11-111-30/+21
| |/ | | | | | | | | | | | | | | | | | | | | The callback-based method of listing remote references dates back to the beginning of the network code's lifetime, when we didn't know any better. We need to keep the list around for update_tips() after disconnect() so let's make use of this to simply give the user a pointer to the array so they can write straightforward code instead of having to go through a callback.
* | Make url decoding more bulletproofbetter-url-parsingBen Straub2013-11-051-2/+2
| |
* | Unescape url-encoded usernames and passwordsBen Straub2013-11-041-2/+14
| |
* | Use http_parser_parse_url to parse urlsBen Straub2013-11-041-27/+28
| |
* | Streamline url-parsing logic.Ben Straub2013-11-011-0/+10
|/
* Merge remote-tracking branch 'drodriguez/fix-remote-save' into developmentVicent Marti2013-11-011-9/+16
|\
| * Fix saving remotes with several fetch/push ref specs.Daniel Rodríguez Troitiño2013-11-011-9/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | At some moment git_config_delete_entry lost the ability to delete one entry of a multivar configuration. The moment you had more than one fetch or push ref spec for a remote you will not be able to save that remote anymore. The changes in network::remote::remotes::save show that problem. I needed to create a new git_config_delete_multivar because I was not able to remove one or several entries of a multivar config with the current API. Several tries modifying how git_config_set_multivar(..., NULL) behaved were not successful. git_config_delete_multivar is very similar to git_config_set_multivar, and delegates into config_delete_multivar of config_file. This function search for the cvar_t that will be deleted, storing them in a temporal array, and rebuilding the linked list. After calling config_write to delete the entries, the cvar_t stored in the temporal array are freed. There is a little fix in config_write, it avoids an infinite loop when using a regular expression (case for the multivars). This error was found by the test network::remote::remotes::tagopt.
* | Add tests for badly-formed URLsBen Straub2013-10-311-0/+7
|/
* HTTP: handle "relative" redirectsBen Straub2013-10-021-0/+28
|
* remote: put the _download() callback with the othersCarlos Martín Nieto2013-10-022-7/+17
| | | | | | The text progress and update_tips callbacks are already part of the struct, which was meant to unify the callback setup, but the download one was left out.
* Make sure utility doesn't leak memoryBen Straub2013-09-261-0/+9
|
* Deploy gitno_connection_data into transport (winhttp)Ben Straub2013-09-261-4/+6
| | | | ...and have that call manage replaced memory in the output structure.
* Migrate redirect URL handling to common utilityBen Straub2013-09-251-0/+42
|
* tests: Fix memory leaksnulltoken2013-09-071-0/+2
|
* Test pushing to remotes with "file:///" urlsBen Straub2013-09-041-1/+70
|
* remote: Make git_remote_list() detect pushurlnulltoken2013-08-271-2/+8
|
* remote: Relax the parsing logic even morenulltoken2013-08-271-0/+22
| | | | | | In order to be loaded, a remote needs to be configured with at least a `url` or a `pushurl`. ENOTFOUND will be returned when trying to git_remote_load() a remote with neither of these entries defined.
* remote: Don't parse missing urls as empty stringsnulltoken2013-08-271-0/+6
|
* remote: relax the url rulesCarlos Martín Nieto2013-08-141-4/+6
| | | | | | | | | | | | | Accept any value for the remote's url, including an empty string which we used to reject as invalid configuration. This is not quite what git does (although it has its own problems with such configurations) and it makes it harder to fix the issue, by not letting the user modify it. As we already need to check for a valid URL when we try to connect to the network, let that perform the check, as we don't need to do it anywhere else.
* Unbreak git_remote_ls on a local transport after disconnecting.Arthur Schreiber2013-06-251-0/+12
|
* remote: make default tag retrieving behaviour consistentyorah2013-05-301-0/+3
| | | | | Default for newly created remotes will be auto. Default when loading existing remotes with no tag retrieving behaviour set, was already auto.
* tests: don't verify SSH unsupported with GIT_SSHMichael Schubert2013-05-271-0/+2
|
* Merge pull request #1385 from carlosmn/refs-iterEdward Thomson2013-05-111-3/+3
|\ | | | | Introduce a refs iterator
| * refs: remove the OID/SYMBOLIC filteringCarlos Martín Nieto2013-05-111-3/+3
| | | | | | | | | | | | | | | | | | Nobody should ever be using anything other than ALL at this level, so remove the option altogether. As part of this, git_reference_foreach_glob is now implemented in the frontend using an iterator. Backends will later regain the ability of doing the glob filtering in the backend.
* | Merge pull request #1561 from arrbee/fix-windows-diff-eofnlVicent Martí2013-05-091-6/+6
|\ \ | | | | | | Fix windows diff eofnl error
| * | Fix win32 type warningsRussell Belfer2013-05-071-6/+6
| |/
* | remote: correctly interpret tagopt '--tags'Carlos Martín Nieto2013-05-071-0/+17
|/ | | | | | | When tagopt is set to '--tags', we should only take the default tags refspec into account and ignore any configured ones. Bring the code into compliance.
* remote: add resfpec list accessorsCarlos Martín Nieto2013-04-301-8/+7
| | | | | | Bring back a way of acessing the git_refspec* from a remote. Closes #1514
* remote: dwim the refspecs according to the remote's advertised refsCarlos Martín Nieto2013-04-281-0/+41
| | | | | As git allows you to store shorthand refspecs in the configuration, we need to do this ourselves.
* Parse shorthand refspecs as validCarlos Martín Nieto2013-04-281-0/+3
| | | | | Relax the ONELEVEL ref naming rules so the refspec parsing code can ask for 'master' to be considered valid.
* refspec: unify the string and parsed dataCarlos Martín Nieto2013-04-201-3/+3
| | | | | | | | It used to be separate as an attempt to make the querying easier, but it didn't work out that way, so put all the data together. Add git_refspec_string() as well to get the original string, which is now stored alongside the independent parts.
* remote: allow querying for refspecsCarlos Martín Nieto2013-04-201-23/+56
| | | | | | | | Introduce git_remote_{fetch,push}_refspecs() to get a list of refspecs from the remote and rename the refspec-adding functions to a less silly name. Use this instead of the vector index hacks in the tests.
* remote: handle multiple refspecsCarlos Martín Nieto2013-04-201-12/+44
| | | | | | | | | | | | | A remote can have a multitude of refspecs. Up to now our git_remote's have supported a single one for each fetch and push out of simplicity to get something working. Let the remotes and internal code know about multiple remotes and get the tests passing with them. Instead of setting a refspec, the external users can clear all and add refspecs. This should be enough for most uses, though we're still missing a querying function.
* tag: Fix parsing when no tagger nor messagenulltoken2013-03-312-4/+4
|
* Update cl_assert_equal_sz to be nicerRussell Belfer2013-03-221-6/+6
| | | | | | | This makes the size_t comparison test nicer (assuming that the values are actually not using the full length), and converts some cases that were using it for pointer comparison to use the macro that is designed for pointer comparison.
* remote push test fixEdward Thomson2013-03-051-1/+2
|
* Merge pull request #1316 from ben/clone-cancelRussell Belfer2013-02-121-1/+2
|\ | | | | Allow network operations to cancel
| * Allow progress callback to cancel fetchBen Straub2013-02-051-1/+2
| | | | | | | | | | This works by having the indexer watch the return code of the callback, so will only take effect on object boundaries.
* | remote: Introduce git_remote_is_valid_name()nulltoken2013-02-112-4/+35
| | | | | | | | Fix libgit2/libgit2sharp#318
* | remote: reorganize testsnulltoken2013-02-114-51/+51
| |
* | Teach refspec to transform destination reference to source referenceJameson Miller2013-02-111-2/+9
|/
* Plug test leaksBen Straub2013-01-311-12/+16
|
* Enhance url parsing to include passwordsBen Straub2013-01-311-0/+78
|