summaryrefslogtreecommitdiff
path: root/tests/resources/testrepo
Commit message (Collapse)AuthorAgeFilesLines
* refs: refuse to delete HEADJosh Bleecher Snyder2020-01-151-0/+1
| | | | | | | This requires adding a new symbolic ref to the testrepo fixture. Some of the existing tests attempt to delete HEAD, expecting a different failure. Introduce and use a non-HEAD symbolic ref instead. Adjust a few other tests as needed. Fixes #5357
* checkout: fix test fixture missing objectscmn/validity-tree-from-unowned-indexEdward Thomson2018-10-203-0/+0
| | | | | | | | | | | | | | | The testrepo test fixture has an index file that's damaged, missing an object. The index previously had an entry of `src/index.c` with id 3161df8cbf3a006b4ef85be6497a0ea6bde98541, but that object was missing in the repository. This commit adds an object to the repository and updates the index to use that existing blob. Similarly, the index has an entry for `readme` with an id of 97328ac7e3bd0bcd3900cb3e7a624d71dd0df888. This can be restored from other test repositories. With these fixed, now the write tree from index tests can pass since they validate object existence.
* testrepo: add new branchEdward Thomson2018-02-233-0/+3
| | | | | | Add a new branch to the `testrepo` repository, where the `README` file has changed to executable. This branch enables typechange tests between the new `executable` branch and `master`.
* tests: add merge-conflict branch for testrepoPatrick Steinhardt2017-02-134-0/+1
| | | | | Add a new branch that causes a merge conflict to `testrepo` so that we are able to test merging in worktrees.
* tests: add worktree test dataPatrick Steinhardt2017-02-137-0/+6
|
* tests: use legitimate object idsEdward Thomson2016-02-281-0/+0
| | | | | Use legitimate (existing) object IDs in tests so that we have the ability to turn on strict object validation when running tests.
* checkout test: ensure .gitattributes lifecycleEdward Thomson2015-02-024-0/+2
| | | | | | The .gitattributes cache should not reload .gitattributes in the middle of checking out, only between checkout operations. Otherwise, we'll spend all our time stat'ing and read'ing the gitattributes.
* Introduce failing test for conflict filtering in indexEdward Thomson2014-10-133-0/+0
|
* Preserve tree filemode in index during checkoutEdward Thomson2014-01-223-0/+0
| | | | | | Don't try to determine whether the system supports file modes when putting the tree data in the index during checkout. The tree's mode is canonical and did not come from stat(2) in the first place.
* Rename tests-clar to testsBen Straub2013-11-1471-0/+49
|
* Backport more test dataVicent Martí2012-05-0253-43/+0
|
* Ported t04_commit.c to Clar.Ben Straub2012-03-2053-0/+43
Created a copy of tests/resources/testrepo.git that is compatible with the Clar sandboxing helpers. Restructured commit test suites to use Clar sandbox helpers. Now using typed data arrays rather than lots of macros to define test cases.