summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Allow mkdir helper to skip parent errorsrb/mkdir-allow-parent-failuresRussell Belfer2014-08-221-0/+31
| | | | | | | Our mkdir helper was failing is a parent directory was not accessible even if the child directory could be created. This changes the helper to keep trying child directories even when the parent is unwritable.
* Merge pull request #2528 from libgit2/vmg/tostr_sVicent Marti2014-08-183-14/+5
|\ | | | | Export `git_oid_tostr_s` instead of `_allocfmt`
| * oid: Export `git_oid_tostr_s` instead of `_allocfmt`vmg/tostr_sVicent Marti2014-08-183-14/+5
| | | | | | | | | | | | The old `allocfmt` is of no use to callers, as they are not able to free the returned buffer. Export a new API that returns a static string that doesn't need to be freed.
* | Revert "test: Remove symlinks from the source tree"Vicent Marti2014-08-181-0/+1
| | | | | | | | This reverts commit 0dc54e149498bbd5de5e5ecc6006f9f5afb6588c.
* | test: Remove symlinks from the source treeVicent Marti2014-08-181-1/+0
| | | | | | | | We don't really use this at all, and it breaks packaging in Windows.
* | git_remote_ls() should return an error if the transport is not availableJacques Germishuys2014-08-151-0/+11
| |
* | Introduce git_buf_decode_base64Edward Thomson2014-08-151-8/+29
| | | | | | | | Decode base64-encoded text into a git_buf
* | online::clone::credentials support default credentialsEdward Thomson2014-08-151-3/+26
| |
* | Free references during push validationEdward Thomson2014-08-151-0/+2
| |
* | Remove the refs/notes/commits that we push in testEdward Thomson2014-08-141-0/+9
| | | | | | | | | | | | | | The online::push::notes test pushes a note but leaves it hanging around for other tests to stumble across when they're validating that they're seeing the refs they expect to see. Clean it up on exit.
* | Don't run the ssh clone tests against http remotesEdward Thomson2014-08-141-1/+1
| |
* | Merge pull request #2469 from ethomson/transport2Vicent Marti2014-08-142-0/+2
|\ \ | | | | | | Custom transport: minor cleanups
| * | Custom transport: minor cleanupsEdward Thomson2014-08-142-0/+2
| |/ | | | | | | | | | | | | | | | | | | | | | | * Move the transport registration mechanisms into a new header under 'sys/' because this is advanced stuff. * Remove the 'priority' argument from the registration as it adds unnecessary complexity. (Since transports cannot decline to operate, only the highest priority transport is ever executed.) Users who require per-priority transports can implement that in their custom transport themselves. * Simplify registration further by taking a scheme (eg "http") instead of a prefix (eg "http://").
* | Don't include the unreadable tests on win32Edward Thomson2014-08-131-0/+4
|/
* config: a multiline var can start immediatelyCarlos Martín Nieto2014-08-091-0/+13
| | | | | | | | | | | | | | | | | In the check for multiline, we traverse the backslashes from the end backwards and int the end assert that we haven't gone past the beginning of the line. We make sure of this in the loop condition, but we also check in the return value. However, for certain configurations, a line in a multiline variable might be empty to aid formatting. In that case, 'end' == 'start', since we ended up looking at the first char which made it a multiline. There is no need for the (end > start) check in the return, since the loop guarantees we won't go further back than the first char in the line, and we do accept the first char to be the final backslash. This fixes #2483.
* Don't report status on named pipesRussell Belfer2014-08-081-0/+32
| | | | | Git skips entries in directories that are not S_ISDIR, S_ISREG, or S_ISLNK, so let's make libgit2 do the same thing.
* Merge pull request #2471 from jacquesg/compatibility-cleanupVicent Marti2014-08-074-12/+13
|\ | | | | Compatibility/Portability cleanup
| * Use p_snprintf also in testsJacques Germishuys2014-08-054-12/+13
| |
* | Merge pull request #2484 from libgit2/fix-git-status-list-new-unreadable-folderVicent Marti2014-07-232-0/+102
|\ \ | | | | | | Fix git status list new unreadable folder
| * \ Merge remote-tracking branch 'origin/master' into ↵Alan Rogers2014-07-2256-318/+538
| |\ \ | | | | | | | | | | | | fix-git-status-list-new-unreadable-folder
| * \ \ Merge remote-tracking branch 'origin/development' into ↵Alan Rogers2014-07-108-53/+147
| |\ \ \ | | | | | | | | | | | | | | | fix-git-status-list-new-unreadable-folder
| * \ \ \ Merge remote-tracking branch 'origin/development' into ↵Alan Rogers2014-06-0433-102/+835
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fix-git-status-list-new-unreadable-folder Conflicts: include/git2/diff.h
| * | | | | Add another test for unreadable and not included.Alan Rogers2014-06-041-0/+32
| | | | | |
| * | | | | Add GIT_STATUS_OPT_INCLUDE_UNREADABLE_AS_UNTRACKEDAlan Rogers2014-06-031-1/+36
| | | | | | | | | | | | | | | | | | | | | | | | and a (failing) test for it.
| * | | | | Fix the no permissions test.Alan Rogers2014-05-301-3/+2
| | | | | |
| * | | | | Use 'X' for unreadable status.Alan Rogers2014-05-301-0/+3
| | | | | |
| * | | | | We do expect the foo path in the nopermissions testAlan Rogers2014-05-231-2/+2
| | | | | |
| * | | | | Remove errant newlineAlan Rogers2014-05-221-1/+0
| | | | | |
| * | | | | Simplify the no permission test.Alan Rogers2014-05-211-6/+4
| | | | | |
| * | | | | Skip unreadable files for now.Alan Rogers2014-05-151-2/+5
| | | | | |
| * | | | | Simplify the test.Alan Rogers2014-05-151-10/+5
| | | | | |
| * | | | | Add a test (failing) for a work tree status.Alan Rogers2014-05-141-0/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When thees is an unreadable folder, we should still be able to enumerate status.
* | | | | | git_cherry_pick -> git_cherrypickEdward Thomson2014-07-223-31/+31
| |_|_|/ / |/| | | |
* | | | | Merge pull request #2476 from linquize/config-lf-eofVicent Marti2014-07-161-0/+16
|\ \ \ \ \ | | | | | | | | | | | | When adding new config section, handle config file not ending with LF
| * | | | | Add unit test to test add section without lf at EOFLinquize2014-07-161-0/+16
| | | | | |
* | | | | | Merge pull request #2467 from ethomson/win_local_cloneVicent Marti2014-07-161-13/+43
|\ \ \ \ \ \ | |/ / / / / |/| | | | | Handle local file:/// paths on Windows
| * | | | | Handle local file:/// paths on WindowsEdward Thomson2014-07-111-13/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Windows can't handle a path like `/c:/foo`; when turning file:/// URIs into local paths, we must strip the leading slash.
* | | | | | Switch description and path reportingEdward Thomson2014-07-151-1/+1
| |_|_|_|/ |/| | | |
* | | | | Merge pull request #2463 from libgit2/cmn/ssh-factory-for-pathsVicent Marti2014-07-111-0/+65
|\ \ \ \ \ | | | | | | | | | | | | ssh: provide a factory function for setting ssh paths
| * | | | | ssh: provide a factory function for setting ssh pathscmn/ssh-factory-for-pathsCarlos Martín Nieto2014-07-071-0/+65
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | git allows you to set which paths to use for the git server programs when connecting over ssh; and we want to provide something similar. We do this by providing a factory function which can be set as the remote's transport callback which will set the given paths upon creation.
* | | | | refspec: support asterisks in the middle of a patternCarlos Martín Nieto2014-07-041-0/+23
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We used to assume a refspec would only have an asterisk in the middle of their respective pattern. This has not been a valid assumption for some time now with git. Instead of assuming where the asterisk is going to be, change the logic to treat each pattern as having two halves with a replacement bit in the middle, where the asterisk is.
* | | | Merge pull request #2460 from libgit2/cmn/sched-yieldVicent Marti2014-07-031-0/+14
|\ \ \ \ | | | | | | | | | | Move yield to the tests and enable for FreeBSD
| * | | | Move yield to the tests and enable for FreeBSDcmn/sched-yieldCarlos Martín Nieto2014-07-031-0/+14
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | Move the definition of git_thread_yield() to the test which needs it and add the correct definition for it for FreeBSD and derivatives. Original patch adding FreeBSD and derivatives by @jacquesg.
* | | | Merge pull request #2459 from libgit2/cmn/http-url-pathVicent Marti2014-07-031-0/+18
|\ \ \ \ | | | | | | | | | | netops: error out on url without a path
| * | | | netops: error out on url without a pathcmn/http-url-pathCarlos Martín Nieto2014-07-031-0/+18
| |/ / / | | | | | | | | | | | | | | | | | | | | In order to connect to a remote server, we need to provide a path to the repository we're interested in. Consider the lack of path in the url an error.
* | | | Merge pull request #2455 from ethomson/equal_oidVicent Marti2014-07-0240-151/+161
|\ \ \ \ | | | | | | | | | | Introduce `cl_assert_equal_oid`
| * | | | revwalk::simplify test should testEdward Thomson2014-07-011-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The revwalk::simplify test was not actually tested the values from the revwalk against the expected. (Further, the expected had two IDs transposed.)
| * | | | Introduce cl_assert_equal_oidEdward Thomson2014-07-0139-148/+158
| | | | |
* | | | | Merge pull request #2453 from ethomson/checkout_indexVicent Marti2014-07-021-1/+1
|\ \ \ \ \ | | | | | | | | | | | | git_checkout_index: checkout other indexes
| * | | | | git_checkout_index: checkout other indexesEdward Thomson2014-07-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | git_checkout_index can now check out other git_index's (that are not necessarily the repository index). This allows checkout_index to use the repository's index for stat cache information instead of the index data being checked out. git_merge and friends now check out their indexes directly instead of trying to blend it into the running index.