summaryrefslogtreecommitdiff
path: root/tests-clar/network/remotes.c
Commit message (Collapse)AuthorAgeFilesLines
* remote: reorganize testsnulltoken2013-02-111-373/+0
|
* Teach refspec to transform destination reference to source referenceJameson Miller2013-02-111-2/+9
|
* Merge pull request #1278 from sba1/cl-assert-equal-sVicent Martí2013-01-251-4/+4
|\ | | | | Use cl_assert_equal_s() instead of strcmp().
| * Use cl_assert_equal_s() instead of strcmp().Sebastian Bauer2013-01-251-4/+4
| | | | | | | | | | Replaced all cl_assert(!strcmp()) or semantically equivalent forms by cl_assert_equal_s().
* | Fix 3 memory leaksPhilip Kelley2013-01-251-0/+1
|/
* Test that pushs properly fail for transports that don't provide a push ↵Sebastian Bauer2013-01-171-0/+21
| | | | implementation.
* Move `url` to last place in parameter listBen Straub2013-01-021-2/+2
|
* remote: remove duplicated testnulltoken2012-12-241-15/+0
|
* remote: Prevent create() from blindly overwritingnulltoken2012-12-241-0/+11
|
* remote: Enhance in-memory remote test coveragenulltoken2012-12-241-0/+2
|
* Rename test to make @nulltoken happyBen Straub2012-12-211-1/+1
|
* In-memory remotes don't have namesBen Straub2012-12-211-4/+4
|
* Remote: deprecate dangling, prevent saving in-memoryBen Straub2012-12-201-21/+4
|
* Rename remote creation APIsBen Straub2012-12-201-10/+10
| | | | git_remote_add -> git_remote_create git_remote_new -> git_remote_create_inmemory
* Fix some leaks and (possibly) dangling pointers in testsSascha Cunz2012-12-191-3/+23
| | | | Also adds some asserts.
* Reset global variable to NULL after free'ing resourceSascha Cunz2012-12-181-0/+1
|
* API to set a dangling remote's repositoryBen Straub2012-12-121-2/+6
|
* Allow creation of dangling remotesBen Straub2012-12-121-0/+10
|
* Merge pull request #1115 from ben/struct-versionsVicent Martí2012-12-051-0/+20
|\ | | | | Version info for public structs
| * Deploy versioned git_transport structureBen Straub2012-11-301-0/+20
| |
* | remote: deploy EINVALIDSPEC usagenulltoken2012-12-011-6/+33
|/
* API updates for remote.hBen Straub2012-11-271-4/+4
| | | | | Includes typedef for git_direction, and renames for GIT_DIR_[FETCH|PUSH] to GIT_DIRECTION_(\1).
* Reset all static variables to NULL in clar's __cleanupSascha Cunz2012-11-231-0/+2
| | | | | | | | | | | | Without this change, any failed assertion in the second (or a later) test inside a test suite has a chance of double deleting memory, resulting in a heap corruption. See #1096 for details. This leaves alone the test cases where we "just" use cl_git_sandbox_init() and cl_git_sandbox_cleanup(). These methods already take good care to not double delete a repository. Fixes #1096
* Revert "Don't expect the 'empty-remote-url' remote to be listed"Justin Spahr-Summers2012-11-051-2/+2
| | | | | | Apparently git_remote_list() includes even remotes for which git_remote_load() would fail. Sorry @nulltoken, false alarm. This reverts commit f358ec143c8c9952227d31cd21c24f8c9be23d3c.
* Don't expect the 'empty-remote-url' remote to be listedJustin Spahr-Summers2012-11-051-2/+2
| | | | CC @nulltoken
* Test for GITERR_INVALIDJustin Spahr-Summers2012-11-051-0/+1
|
* remote: Add malformed remote load testnulltoken2012-11-041-2/+9
|
* Reorganize transport architecture (squashed 3)Philip Kelley2012-11-011-1/+0
|
* remote: prevent from saving a nameless remotenulltoken2012-10-251-5/+26
|
* remote: set/unset the autotag setting on saveCarlos Martín Nieto2012-10-021-0/+24
| | | | | Make the configuration option match the configured behavior when saving a remote.
* refspec: No remote tracking ref from a fetchspec-less remotenulltoken2012-09-131-2/+2
|
* Remotes: Use correct url in git_remote_connectSascha Cunz2012-07-271-0/+12
|
* Remotes: Save a cleaned pushurl (by deleting it from the config)Sascha Cunz2012-07-271-0/+9
|
* Tests: Test remote's pushurlSascha Cunz2012-07-261-2/+25
|
* tests: Fix warning with nested commentsVicent Marti2012-06-051-1/+1
|
* remote: Make git_remote_add() generate a default refspec with a force update ↵nulltoken2012-06-041-0/+10
| | | | specifier
* refspec: expose the force update specifier through git_refspec_force() accessornulltoken2012-05-301-0/+1
|
* remotes: change git_remote_new's signatureCarlos Martín Nieto2012-05-081-1/+1
| | | | | Add a fetch refspec arguemnt and make the arguments (name, url, refspec), as that order makes more sense.
* remote: add git_remote_add()Carlos Martín Nieto2012-05-081-0/+12
| | | | Helper function to create a remote with the default settings
* remote: make git_remote_load() return GIT_ENOTFOUND when the remote url ↵nulltoken2012-05-081-0/+5
| | | | cannot be retrieved from the config file
* Remove old and unused error codesVicent Martí2012-05-021-2/+2
|
* Update test suiteVicent Martí2012-05-021-14/+14
|
* Discovered cl_git_strequal! Mounted a crusade!Ben Straub2012-03-311-14/+14
|
* introduced new function: git_remote_supported_url() <-- returns true if this ↵Ryan Wilcox2012-03-011-1/+12
| | | | version of libgit2 supports the correct transport mechanism for a URL or path
* implement support for username@host:path URLs in transport_find_fn()Ryan Wilcox2012-02-291-0/+10
|
* Add git_remote_list()Carlos Martín Nieto2012-02-261-0/+18
| | | | | Loops through the configuration and generates a list of configured remotes.
* A remote exists with an URL aloneCarlos Martín Nieto2012-02-241-0/+13
| | | | | | | We used to consider it an error if a remote didn't have at least a fetch refspec. This was too much checking, as a remote doesn't in fact need to have anything other than an URL configured to be considered a remote.
* Add git_remote_save()Carlos Martín Nieto2012-02-201-0/+26
|
* Add git_remote_set_{fetch,push}spec()Carlos Martín Nieto2012-02-201-0/+16
| | | | | Allow setting the fetch and push refspecs, which is useful for creating new refspecs.
* tests: free the remotes temp bufferCarlos Martín Nieto2012-02-011-0/+1
|