summaryrefslogtreecommitdiff
path: root/tests-clar
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | Define S_IREAD i S_IWRITE for Android.Krzysztof Adamski2013-09-011-0/+5
| | | |
* | | | Fix typo _delete -> _freeCarlos Martín Nieto2013-08-291-1/+1
| |/ / |/| |
* | | Merge pull request #1805 from libgit2/threading-packed-loadVicent Martí2013-08-284-3/+603
|\ \ \ | |/ / |/| | Thread safety for the refdb_fs
| * | Fix commentRussell Belfer2013-08-231-1/+1
| | |
| * | Trying to fix Win32 warningsRussell Belfer2013-08-221-1/+1
| | |
| * | Add SRWLock implementation of rwlocks for Win32Russell Belfer2013-08-221-2/+4
| | |
| * | Convert sortedcache to use rwlockRussell Belfer2013-08-221-10/+21
| | | | | | | | | | | | | | | This is the first use we have of pthread_rwlock_t in libgit2. Hopefully it won't cause any serious portability problems.
| * | Fix warnings when compiling without threadsRussell Belfer2013-08-211-4/+15
| | |
| * | Rewrite refdb_fs using git_sortedcache objectRussell Belfer2013-08-211-0/+200
| | | | | | | | | | | | | | | | | | | | | | | | This adds thread safety to the refdb_fs by using the new git_sortedcache object and also by relaxing the handling of some filesystem errors where the fs may be changed out from under us. This also adds some new threading tests that hammer on the refdb.
| * | Add sortedcache APIs to lookup index and removeRussell Belfer2013-08-211-0/+52
| | | | | | | | | | | | This adds two other APIs that I need to the sortedcache type.
| * | Add sorted cache data typeRussell Belfer2013-08-201-0/+298
| | | | | | | | | | | | | | | | | | | | | | | | This adds a convenient new data type for caching the contents of file in memory when each item in that file corresponds to a name and you need to both be able to lookup items by name and iterate over them in some sorted order. The new data type has locks in place to manage usage in a threaded environment.
| * | Don't try to pack symbolic refsRussell Belfer2013-08-201-2/+28
| | | | | | | | | | | | | | | | | | If there were symbolic refs among the loose refs then the code to create packed-refs would fail trying to parse the OID out of them (where Git just skips trying to pack them). This fixes it.
* | | Merge pull request #1803 from libgit2/ntk/topic/even_more_lenient_remote_parsingVicent Martí2013-08-283-4/+42
|\ \ \ | | | | | | | | Even more lenient remote parsing
| * | | remote: Make git_remote_list() detect pushurlnulltoken2013-08-271-2/+8
| | | |
| * | | vector: Teach git_vector_uniq() to free while deduplicatingnulltoken2013-08-271-1/+1
| | | |
| * | | remote: Relax the parsing logic even morenulltoken2013-08-272-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | 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-272-1/+7
| | | |
* | | | Merge pull request #1772 from libgit2/config-iterVicent Martí2013-08-283-30/+111
|\ \ \ \ | | | | | | | | | | Configuration iterators redux
| * | | | config: don't special-case the multivar iteratorCarlos Martín Nieto2013-08-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Build it on top of the normal iterator instead, which lets use re-use a lot of code.
| * | | | config: introduce a regex-filtering iteratorCarlos Martín Nieto2013-08-121-0/+33
| | | | |
| * | | | config: introduce _iterator_new()Carlos Martín Nieto2013-08-121-0/+30
| | | | | | | | | | | | | | | | | | | | As the name suggests, it iterates over all the entries
| * | | | config: add _next() and _iterator_free()Carlos Martín Nieto2013-08-081-0/+18
| | | | | | | | | | | | | | | | | | | | Make it look like the refs iterator API.
| * | | | config: working multivar iteratorCarlos Martín Nieto2013-08-081-7/+7
| | | | | | | | | | | | | | | | | | | | Implement the foreach version as a wrapper around the iterator.
| * | | | config: get_multivar -> get_multivar_foreachCarlos Martín Nieto2013-08-082-23/+23
| | | | | | | | | | | | | | | | | | | | | | | | | The plain function will return an iterator, so move this one out of the way.
* | | | | Improve win32 version check, no ipv6 tests on XPEdward Thomson2013-08-271-3/+16
| |/ / / |/| | |
* | | | refs: add git_reference_is_tagNikolai Vladimirov2013-08-261-0/+16
| | | |
* | | | fix tests on FreeBSDFraser Tweedale2013-08-241-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 238b761 introduced a test for posix behaviour, but on FreeBSD some of the structs and constants used aren't defined in <arpa/inet.h>. Include the appropriate headers to get the tests working again on FreeBSD.
* | | | Skip UTF-8 BOM in binary detectionEdward Thomson2013-08-191-0/+6
| |/ / |/| | | | | | | | | | | | | | | | | | | | When a git_buf contains a UTF-8 BOM, the three bytes comprising that BOM are treated as unprintable characters. For a small git_buf, the three BOM characters overwhelm the printable characters. This is problematic when trying to check out a small file as the CR/LF filtering will not apply.
* | | Fix p_inet_pton on windowsEdward Thomson2013-08-191-0/+84
| | | | | | | | | | | | | | | | | | p_inet_pton on Windows should set errno properly for callers. Rewrite p_inet_pton to handle error cases correctly and add test cases to exercise this function.
* | | Merge pull request #1785 from libgit2/cmn/odb-hash-frontendVicent Martí2013-08-191-3/+3
|\ \ \ | | | | | | | | odb: move hashing to the frontend for streaming
| * | | odb: wrap the stream reading and writing functionsCarlos Martín Nieto2013-08-151-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | This is in preparation for moving the hashing to the frontend, which requires us to handle the incoming data before passing it to the backend's stream.
* | | | index: report when it's lockedCarlos Martín Nieto2013-08-191-0/+25
| |_|/ |/| | | | | | | | | | | | | | | | | Report the index being locked with its own error code in order to be able to differentiate, as a locked index is typically the result of a crashed process or concurrent access, both of which often require user intervention to fix.
* | | Merge pull request #1778 from libgit2/push_tag_to_tag_testVicent Martí2013-08-165-0/+16
|\ \ \ | | | | | | | | push: handle tag chains correctly
| * | | test that suggests tags arent fully peeled during pushEdward Thomson2013-07-125-0/+16
| | | |
* | | | Improve isolation of new test from user environsRussell Belfer2013-08-161-0/+11
| | | |
* | | | New test that inits repo and make commitRussell Belfer2013-08-161-0/+49
| | | |
* | | | Merge pull request #1783 from libgit2/cmn/relax-remoteVicent Martí2013-08-141-4/+6
|\ \ \ \ | | | | | | | | | | remote: relax the url rules
| * | | | remote: relax the url rulesCarlos Martín Nieto2013-08-141-4/+6
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Accept any value for the remote's url, including an empty string which we used to reject as invalid configuration. This is not quite what git does (although it has its own problems with such configurations) and it makes it harder to fix the issue, by not letting the user modify it. As we already need to check for a valid URL when we try to connect to the network, let that perform the check, as we don't need to do it anywhere else.
* | | | Test SSH in travisCarlos Martín Nieto2013-08-141-0/+10
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Set up the ssh credentials so we are able to talk to localhost and issue git commands. Move to use a script, as the command list is getting somewhat long. While here, delay installing valgrind until we need it, as it and its dependencies are by far the largest downloads and this allows us to start compiling (and failing) faster and we only incur this cost when the test suite runs successfully.
* | | Merge pull request #1767 from libgit2/win32-bigger-utf8-bufferVicent Martí2013-08-1311-17/+75
|\ \ \ | | | | | | | | Bigger buffer for utf-8 parsing in win32
| * | | Minor win32 fixes and improvementsRussell Belfer2013-08-131-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is just a bunch of small fixes that I noticed while looking at the UTF8 and UTF16 path stuff. It fixes a slowdown in looking for an empty directory (not exiting loop asap), makes the dir name in the git__DIR structure be a GIT_FLEX_ARRAY to save an allocation, and fixes some slightly odd assumptions in the cl_getenv helper.
| * | | Rename git__win32_path fns to git_win32_pathRussell Belfer2013-08-131-5/+5
| | | |
| * | | windows: Path conversion with better semanticsVicent Marti2013-08-131-11/+11
| | | |
| * | | Discriminate path-specific and general UTF-X conversionsBen Straub2013-08-081-6/+6
| | | |
| * | | Rename git_win_str_utf* to git_win32_path_utf*Ben Straub2013-08-071-5/+5
| | | |
| * | | Add typedefs for win32 utf-8 and utf-16 buffersBen Straub2013-08-071-10/+10
| | | | | | | | | | | | | | | | ...and normalize the signatures of the two conversion functions.
| * | | Add checkout test for long file nameBen Straub2013-08-072-2/+21
| | | |
| * | | Add long-file-name branch to test repoBen Straub2013-08-077-4/+6
| | | |
| * | | Don't use win32-only macro in test codeBen Straub2013-08-071-1/+1
| | | |
| * | | Add status test for long pathsBen Straub2013-08-072-0/+36
| | | |