summaryrefslogtreecommitdiff
path: root/tests-clar/resources
Commit message (Collapse)AuthorAgeFilesLines
* Rename tests-clar to testsBen Straub2013-11-141794-2854/+0
|
* Merge remote-tracking branch 'libgit2/development' into blameBen Straub2013-10-283-0/+0
|\
| * tests for checkout index with conflictsEdward Thomson2013-10-163-0/+0
| |
* | Merge branch 'development' into blameBen Straub2013-10-031-0/+11
|\ \ | |/ | | | | | | Conflicts: include/git2.h
| * Add test case to test ']' and '\\' characters in config subsectionLinquize2013-10-011-0/+11
| |
* | Merge branch 'development' into blameBen Straub2013-09-252-0/+4
|\ \ | |/
| * config: add support for include directivesCarlos Martín Nieto2013-09-072-0/+4
| | | | | | | | | | Relative, absolute and home-relative paths are supported. The recursion limit it set at 10, just like in git.
* | Port blame from git.gitBen Straub2013-09-1623-0/+22
|/
* remote: Relax the parsing logic even morenulltoken2013-08-271-0/+4
| | | | | | 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-1/+1
|
* Merge pull request #1778 from libgit2/push_tag_to_tag_testVicent Martí2013-08-164-0/+4
|\ | | | | push: handle tag chains correctly
| * test that suggests tags arent fully peeled during pushEdward Thomson2013-07-124-0/+4
| |
* | Merge pull request #1767 from libgit2/win32-bigger-utf8-bufferVicent Martí2013-08-134-0/+1
|\ \ | | | | | | Bigger buffer for utf-8 parsing in win32
| * | Add long-file-name branch to test repoBen Straub2013-08-074-0/+1
| |/
* | odb_pack: handle duplicate objects from different packsBrodie Rao2013-08-083-0/+1
| | | | | | | | | | | | | | This is based on 24634c6fd02b2240e4a93fad70a08220f8fb793a. This also corrects an issue with error codes being mixed up with the number of found objects.
* | Merge pull request #1765 from arrbee/ambiguous-oidsRussell Belfer2013-08-057-1/+2
|\ \ | | | | | | More tests for ambiguous OIDs across packs
| * | More tests for ambiguous OIDs across packsRussell Belfer2013-08-057-1/+2
| |/ | | | | | | | | | | | | The test coverage for ambiguous OIDs was pretty thin. This adds a bunch of new objects both in packs, across packs, and loose that match to 8 characters so that we can test various cases of ambiguous lookups.
* | submodule: check alloc and name presenseNikolai Vladimirov2013-08-051-0/+3
|/
* Add more tests for git_config_get_multivarRussell Belfer2013-07-091-1/+1
| | | | | | The old tests didn't try failing lookups or lookups across multiple config files with some having the pattern and some not having it.
* test failure when renames produce similar similaritiesEdward Thomson2013-06-185-0/+9
|
* failing unit test for similar renamesEdward Thomson2013-06-105-0/+1
|
* Improve test failure outputBen Straub2013-05-237-0/+12
|
* Fix refdb iteration early termination bugRussell Belfer2013-05-1144-0/+56
| | | | | | | There was a problem found in the Rugged test suite where the refdb_fs_backend__next function could exit too early in some very specific hashing patterns for packed refs. This ports the Rugged test to libgit2 and then fixes the bug.
* refdb_fs: do not require peeled packed refs to be tagsJeff King2013-05-027-0/+18
| | | | | | Older versions of git would only write peeled entries for items under refs/tags/. Newer versions will write them for all refs, and we should be prepared to handle that.
* merge!Edward Thomson2013-04-30405-0/+538
|
* tag: Fix parsing when no tagger nor messagenulltoken2013-03-312-0/+1
|
* Added some tests for issue #1397Sven Strickroth2013-03-2512-0/+17
| | | | Signed-off-by: Sven Strickroth <email@cs-ware.de>
* Three submodule status bug fixesRussell Belfer2013-03-1815-1/+2
| | | | | | | | | | | | | | | | 1. Fix sort order problem with submodules where "mod" was sorting after "mod-plus" because they were being sorted as "mod/" and "mod-plus/". This involved pushing the "contains a .git entry" test significantly lower in the stack. 2. Reinstate behavior that a directory which contains a .git entry will be treated as a submodule during iteration even if it is not yet added to the .gitmodules. 3. Now that any directory containing .git is reported as submodule, we have to be more careful checking for GIT_EEXISTS when we do a submodule lookup, because that is the error code that is returned by git_submodule_lookup when you try to look up a directory containing .git that has no record in gitmodules or the index.
* Make iterator APIs consistent with standardsRussell Belfer2013-03-0633-0/+41
| | | | | | | | | | | | The iterator APIs are not currently consistent with the parameter ordering of the rest of the codebase. This rearranges the order of parameters, simplifies the naming of a number of functions, and makes somewhat better use of macros internally to clean up the iterator code. This also expands the test coverage of iterator functionality, making sure that case sensitive range-limited iteration works correctly.
* Merge pull request #1369 from arrbee/repo-init-template-hooksVicent Martí2013-03-052-0/+10
|\ | | | | More tests (and fixes) for initializing repo from template
| * Fix initialization of repo directoriesRussell Belfer2013-02-262-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When PR #1359 removed the hooks from the test resources/template directory, it made me realize that the tests for git_repository_init_ext using templates must be pretty shabby because we could not have been testing if the hooks were getting created correctly. So, this started with me recreating a couple of hooks, including a sample and symlink, and adding tests that they got created correctly in the various circumstances, including with the SHARED modes, etc. Unfortunately this uncovered some issues with how directories and symlinks were copied and chmod'ed. Also, there was a FIXME in the code related to the chmod behavior as well. Going back over the directory creation logic for setting up a repository, I found it was a little difficult to read and could result in creating and/or chmod'ing directories that the user almost certainly didn't intend. So that let to this work which makes repo initialization much more careful (and hopefully easier to follow). It required a couple of extensions / changes to core fileops utilities, but I also think those are for the better, at least for git_futils_cp_r in terms of being careful about what actions it takes.
* | Merge pull request #1233 from arrbee/file-similarity-metricVicent Martí2013-02-2720-80/+93
|\ \ | |/ |/| Add file similarity scoring to diff rename/copy detection
| * Add diff rename tests with partial similarityRussell Belfer2013-02-2120-80/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds some new tests that actually exercise the similarity metric between files to detect renames, copies, and split modified files that are too heavily modified. There is still more testing to do - these tests are just partially covering the cases. There is also one bug fix in this where a change set with only MODIFY being broken into ADD/DELETE (due to low self-similarity) without any additional RENAMED entries would end up not processing the split requests (because the num_rewrites counter got reset).
* | Remove sample hook filesMartin Woodward2013-02-2539-1528/+0
|/ | | | | Getting rid of sample hook files from test repos as they just take up space with no value.
* Merge pull request #1318 from nulltoken/topic/diff-tree-coverageVicent Martí2013-02-1422-0/+20
|\ | | | | Topic/diff tree coverage
| * Add unsymlinked.git test repositorynulltoken2013-02-0622-0/+20
| |
* | More diff tests with binary dataRussell Belfer2013-02-111-0/+0
|/
* Allow peeled references without trailing newline at end of fileScott J. Goldman2013-01-221-0/+2
| | | | Also ammends one of the tag tests to make sure it's working.
* add a git config, don't run crlf tests on non-win32Edward Thomson2013-01-171-0/+0
|
* cache should contain on-disk (filtered) file sizeEdward Thomson2013-01-1716-0/+5
|
* Altered the description of the template.Sebastian Bauer2013-01-131-1/+1
| | | | | | Before, it was identical to the default template making it difficult to check, if the proper template was copied an external template test.
* Merge pull request #1215 from phkelley/binaryunicodePhilip Kelley2013-01-1113-0/+23
|\ | | | | Add a failing test for CRLF filters
| * Fix up binaryunicode test repoPhilip Kelley2013-01-118-4/+11
| |
| * Add a failing test for autocrlf filtersPhilip Kelley2013-01-099-0/+16
| |
* | push: properly handle tagsMichael Schubert2013-01-097-0/+11
|/ | | | | Currently, push doesn't really handle tags when queueing objects. Fix it.
* tree: relax the filemode parserCarlos Martín Nieto2012-12-071-0/+0
| | | | | | | | | | | There are many different broken filemodes in the wild so we need to protect against them and give something useful up the chain. Don't fail when reading a tree from the ODB but normalize the mode as best we can. As 664 is no longer a mode that we consider to be valid and gets normalized to 644, we can stop accepting it in the treebuilder. The library won't expose it to the user, so any invalid modes are a bug.
* Merge pull request #1108 from libgit2/ahead-behind-countRussell Belfer2012-11-2940-0/+44
|\ | | | | Add API to calculate ahead/behind count
| * Add the ahead/behind test that Carlos suggestedScott J. Goldman2012-11-2840-0/+44
| | | | | | | | | | Adds a repo with a more complex topology to test the ahead-behind count.
* | Merge pull request #1110 from libgit2/features/push_rebasedVicent Martí2012-11-29112-0/+203
|\ \ | | | | | | Push! By schu, phkelley, and congyiwu
| * | Remove more sample hooks from test repo for pushfeatures/push_rebasedPhilip Kelley2012-11-2910-467/+0
| | |