summaryrefslogtreecommitdiff
path: root/tests/repo
Commit message (Collapse)AuthorAgeFilesLines
* Introduce cl_assert_equal_oidEdward Thomson2014-07-012-8/+8
|
* Fix compile error on Visual StudioCha, Hojeong2014-05-271-1/+1
|
* Better search path sandboxingrb/restore-search-pathsRussell Belfer2014-05-152-20/+23
| | | | | | | There are a number of tests that modify the global or system search paths during the tests. This adds a helper function to make it easier to restore those paths and makes sure that they are getting restored in a manner that preserves test isolation.
* Correct C90 warningsJacques Germishuys2014-04-111-2/+3
|
* git_repository_state_cleanup() should remove rebase-merge/, rebase-apply/ ↵Jacques Germishuys2014-04-071-0/+18
| | | | and BISECT_LOG
* reflog: handle symref chainsCarlos Martín Nieto2014-03-191-0/+51
| | | | | Given HEAD -> master -> foo, when updating foo's reflog we should also update HEAD's, as it's considered the current branch.
* reflog: handle the birth of a branchCarlos Martín Nieto2014-03-191-0/+48
| | | | | | The reflog append function was overzealous in its checking. When passed an old and new ids, it should not do any checking, but just serialize the data to a reflog entry.
* refdb: don't update when there's no needCarlos Martín Nieto2014-03-191-0/+27
| | | | | If the caller wants to update a ref to point to the same target as it currently has, we should return early and avoid writing to the reflog.
* reflog: more comprehensive HEAD testsCarlos Martín Nieto2014-03-181-0/+72
| | | | | | | | | The existing ones lack checking zeroed ids when switching back from an unborn branch as well as what happens when detaching. The reflog appending function mistakenly wrote zeros when dealing with a detached HEAD. This explicitly checks for those situations and fixes them.
* refs: append to the HEAD reflog when updating the current branchCarlos Martín Nieto2014-03-171-2/+1
| | | | | | | | When we update the current branch, we must also append to HEAD's reflog to keep them in sync. This is a bit of a hack, but as git.git says, it covers 100% of default cases.
* repo: remove test which deletes HEADCarlos Martín Nieto2014-03-171-21/+0
| | | | | | This is not something anybody would ever do; removing HEAD makes the .git/ directory no longer be a repository, so we wouldn't be expected to handle such a situation.
* Move system directory cache out of utilsEdward Thomson2014-02-242-5/+7
|
* Address PR commentsRussell Belfer2014-02-201-1/+1
| | | | | | | * Make GIT_INLINE an internal definition so it cannot be used in public headers * Fix language in CONTRIBUTING * Make index caps API use signed instead of unsigned values
* Improve error propagation in shallow callBen Straub2014-02-181-0/+6
|
* Merge pull request #2099 from libgit2/bs/more-reflog-stuffRussell Belfer2014-02-073-9/+30
|\ | | | | More reflogness
| * Add reflog params to git_repository_detach_headBen Straub2014-02-043-9/+30
| |
| * Fix warningBen Straub2014-02-031-1/+1
| |
* | Fix some Windows warningsRussell Belfer2014-02-072-16/+14
|/ | | | | | This fixes a number of warnings with the Windows 64-bit build including a test failure in test_repo_message__message where an invalid pointer to a git_buf was being used.
* Add failing test caseBen Straub2014-02-011-13/+38
|
* Enhance testing of signature parametersBen Straub2014-01-301-3/+10
|
* Ensure creating HEAD creates its reflogBen Straub2014-01-301-0/+21
|
* Ensure updating HEAD updates reflogBen Straub2014-01-301-0/+23
|
* Add reflog params to set-head callsBen Straub2014-01-301-8/+8
|
* repository: move to use a git_buf for outputting stringsCarlos Martín Nieto2014-01-272-49/+39
| | | | | Since we now export that type, we can avoid making the user guess a size.
* refs: remove the _with_log differentiationCarlos Martín Nieto2014-01-152-4/+4
| | | | | | Any well-behaved program should write a descriptive message to the reflog whenever it updates a reference. Let's make this more prominent by removing the version without the reflog parameters.
* Rename tests-clar to testsBen Straub2013-11-1416-0/+3369