summaryrefslogtreecommitdiff
path: root/tests-clar/clone
Commit message (Collapse)AuthorAgeFilesLines
* Test another bad URLBen Straub2013-10-311-1/+3
|
* Add tests for badly-formed URLsBen Straub2013-10-311-6/+2
|
* Test more kinds of bad urlBen Straub2013-10-301-1/+10
|
* Simplify git_path_is_empty_dir implementationRussell Belfer2013-10-031-18/+2
| | | | | | | This simplifies git_path_is_empty_dir on both Windows (getting rid of git_buf allocation inside the function) and other platforms (by just using git_path_direach), and adds tests for the function, and uses the function to simplify some existing tests.
* Initial iconv hookup for precomposed unicodeRussell Belfer2013-10-031-18/+11
| | | | | | | | | | | | | | | | | | | | This hooks up git_path_direach and git_path_dirload so that they will take a flag indicating if directory entry names should be tested and converted from decomposed unicode to precomposed form. This code will only come into play on the Apple platform and even then, only when certain types of filesystems are used. This involved adding a flag to these functions which involved changing a lot of places in the code. This was an opportunity to do a bit of code cleanup here and there, for example, getting rid of the git_futils_cleanupdir_r function in favor of a simple flag to git_futils_rmdir_r to not remove the top level entry. That ended up adding depth tracking during rmdir_r which led to a safety check for infinite directory recursion. Yay. This hasn't actually been tested on the Mac filesystems where the issue occurs. I still need to get test environment for that.
* clone: put the callbacks struct directly in the clone optionsCarlos Martín Nieto2013-10-022-0/+4
| | | | There's no need for this to be a pointer to somewhere else.
* clone: bring back NULL as defaultsCarlos Martín Nieto2013-10-021-0/+6
| | | | This wasremoved as part of the large culling a few commits ago.
* clone: re-allow using a custom remote nameCarlos Martín Nieto2013-10-021-0/+9
| | | | | This is a small thing that by itself doesn't quite justify making the user use clone_into.
* clone: remove more options from basic cloneCarlos Martín Nieto2013-10-021-49/+0
| | | | | | The basic clone function is there to make it easy to create a "normal" clone. Remove a bunch of options that are about changing the remote's configuration.
* clone: remove the autotag optionCarlos Martín Nieto2013-10-021-33/+0
| | | | | Downloading all tags is part of what makes it a clone instead of simply a fetch.
* No such thing as an orphan branchCarlos Martín Nieto2013-09-172-3/+3
| | | | | | | | | | | Unfortunately git-core uses the term "unborn branch" and "orphan branch" interchangeably. However, "orphan" is only really there for the checkout command, which has the `--orphan` option so it doesn't actually create the branch. Branches never have parents, so the distinction of a branch with no parents is odd to begin with. Crucially, the error messages deal with unborn branches, so let's use that.
* Reorganize diff and add basic diff driverRussell Belfer2013-06-101-1/+2
| | | | | | | | | | | | | | | | | | This is a significant reorganization of the diff code to break it into a set of more clearly distinct files and to document the new organization. Hopefully this will make the diff code easier to understand and to extend. This adds a new `git_diff_driver` object that looks of diff driver information from the attributes and the config so that things like function content in diff headers can be provided. The full driver spec is not implemented in the commit - this is focused on the reorganization of the code and putting the driver hooks in place. This also removes a few #includes from src/repository.h that were overbroad, but as a result required extra #includes in a variety of places since including src/repository.h no longer results in pulling in the whole world.
* Fix trailing whitespacesnulltoken2013-05-151-2/+2
|
* Fix some memory leaksnulltoken2013-05-101-0/+2
|
* Do not write tagopt configuration option on clone by defaultJameson Miller2013-05-041-0/+18
|
* remote: add resfpec list accessorsCarlos Martín Nieto2013-04-301-2/+2
| | | | | | Bring back a way of acessing the git_refspec* from a remote. Closes #1514
* Clone: replace fetch spec with custom valueBen Straub2013-04-231-1/+1
|
* get last refspec in clone testNikolai Vladimirov2013-04-231-1/+1
|
* remote: handle multiple refspecsCarlos Martín Nieto2013-04-201-2/+3
| | | | | | | | | | | | | 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.
* Merge remote-tracking branch 'ben/unified-revparse' into developmentVicent Marti2013-04-151-5/+5
|\
| * Redeploy git_revparse_single.Ben Straub2013-04-151-4/+5
| |
| * Deprecate git_revparse_single and _rangelikeBen Straub2013-04-091-5/+4
| |
* | branch: rename 'tracking' to 'upstream'Carlos Martín Nieto2013-03-301-1/+1
|/ | | | | The term 'tracking' is overloaded. Help distinguish what we mean by using 'upstream' for this part of the library.
* Clone should not delete directories it did not createJameson Miller2013-03-011-0/+37
|
* branch: Make git_branch_remote_name() cope with orphaned headsnulltoken2013-02-221-3/+17
|
* Fix MSVC compilation warningsnulltoken2013-02-051-1/+1
| | | | Fix #1308
* Add test case for clone head detached repoFrank Li2013-02-011-0/+24
| | | | | Signed-off-by: Frank Li <lznuaa@gmail.com> Signed-off-by: nulltoken <emeric.fermas@gmail.com>
* branch: Introduce git_branch_tracking_name()nulltoken2013-01-161-0/+11
|
* Merge pull request #1222 from scunz/clone_branchVicent Martí2013-01-121-23/+31
|\ | | | | Switch to specified branch during clone
| * Tests: Add test for check out of given branch during cloneSascha Cunz2013-01-121-0/+11
| |
| * Test: Cleanup some cleaning codeSascha Cunz2013-01-121-23/+20
| |
* | Fix MSVC compilation warningsnulltoken2013-01-111-1/+1
|/
* tests: Fix some memory leaksnulltoken2013-01-061-0/+2
|
* Merge branch 'development' into clar2Vicent Marti2013-01-032-36/+111
|\ | | | | | | | | | | | | Conflicts: tests-clar/clone/nonetwork.c tests-clar/online/clone.c tests-clar/online/fetchhead.c
| * Move some clone tests to the nonetwork suiteBen Straub2013-01-022-22/+22
| |
| * Include checkout options inlineBen Straub2013-01-022-5/+12
| |
| * Fix MSSVC compilation issuenulltoken2012-12-241-1/+2
| |
| * Clone: trust but verifyBen Straub2012-12-192-0/+144
| |
| * Add more clone options. Push test suite segfaults.Ben Straub2012-12-193-56/+18
| |
* | Fix network suiteVicent Marti2013-01-031-15/+3
| |
* | Cleanup Clar to make it SIMPLERVicent Marti2013-01-021-154/+0
|/
* clone-empty-test: Don't use one pointer for two thingsSascha Cunz2012-12-191-3/+7
| | | | ... so we can clean up correctly.
* Cleanup the test correctlySascha Cunz2012-12-171-1/+4
|
* Remove placeholder files during testsBen Straub2012-12-142-40/+67
|
* Rebase fixupBen Straub2012-12-141-3/+4
|
* Allow clone to handle empty reposBen Straub2012-12-141-0/+39
|
* Move non-options back out of options structBen Straub2012-12-142-28/+25
|
* Deploy git_clone_options; remove git_clone_bareBen Straub2012-12-142-41/+51
|
* test: Fix clone testsVicent Marti2012-12-141-2/+5
|
* Merge remote-tracking branch 'origin/clone-auth' into developmentVicent Marti2012-12-142-16/+36
|\