summaryrefslogtreecommitdiff
path: root/tests-clar/clone/nonetwork.c
Commit message (Collapse)AuthorAgeFilesLines
* Rename tests-clar to testsBen Straub2013-11-141-179/+0
|
* 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-021-0/+2
| | | | 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-171-1/+1
| | | | | | | | | | | 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 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.
* Redeploy git_revparse_single.Ben Straub2013-04-151-4/+5
|
* Deprecate git_revparse_single and _rangelikeBen Straub2013-04-091-5/+4
|
* Clone should not delete directories it did not createJameson Miller2013-03-011-0/+37
|
* 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>
* 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-031-17/+108
|\ | | | | | | | | | | | | 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-021-0/+22
| |
| * Include checkout options inlineBen Straub2013-01-021-0/+4
| |
| * Fix MSSVC compilation issuenulltoken2012-12-241-1/+2
| |
| * Clone: trust but verifyBen Straub2012-12-191-0/+81
| |
| * Add more clone options. Push test suite segfaults.Ben Straub2012-12-191-21/+9
| |
* | Fix network suiteVicent Marti2013-01-031-15/+3
|/
* Move non-options back out of options structBen Straub2012-12-141-15/+14
|
* Deploy git_clone_options; remove git_clone_bareBen Straub2012-12-141-22/+26
|
* test: Fix clone testsVicent Marti2012-12-141-2/+5
|
* Merge remote-tracking branch 'origin/clone-auth' into developmentVicent Marti2012-12-141-8/+17
|\
| * Stop premature remote freeing when cloningBen Straub2012-12-131-2/+6
| |
| * Define constant for default fetch specBen Straub2012-12-131-2/+2
| |
| * Convert clone to use dangling remotesBen Straub2012-12-121-8/+13
| |
* | Add test to clone with absolute pathJameson Miller2012-12-131-0/+8
|/
* Reset all static variables to NULL in clar's __cleanupSascha Cunz2012-11-231-1/+4
| | | | | | | | | | | | 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
* Helpers for local-filesystem remote URLsBen Straub2012-11-091-50/+4
|
* Implement local transport's fetchBen Straub2012-11-091-7/+0
|
* Clone: in-line callbacks for progressBen Straub2012-10-191-6/+6
| | | | Also implemented in the git2 example.
* Remove checkout_stats from git_cloneBen Straub2012-10-191-4/+4
|
* Clone: use libgit2's test reposBen Straub2012-10-151-1/+1
|
* Tests: add "network" categoryBen Straub2012-10-151-0/+115
Split the clone tests into network and no-network suites.