summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Move yield to the tests and enable for FreeBSDcmn/sched-yieldCarlos Martín Nieto2014-07-032-7/+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.
* libgit2 v0.21.0v0.21.0Vicent Marti2014-06-20784-10716/+31834
|\
| * Merge pull request #2425 from libgit2/cmn/clone-auth-changev0.21.0-rc2Vicent Marti2014-06-161-9/+3
| |\ | | | | | | Don't use read-write accounts for the tests
| | * test: remove assembla clone testcmn/clone-auth-changeCarlos Martín Nieto2014-06-131-6/+0
| | | | | | | | | | | | | | | | | | | | | The assembla failure we were seeing referred to a private repository, which is not what is there at the moment. This reverts 1fd21b0342f
| | * test: use read-only accountCarlos Martín Nieto2014-06-131-3/+3
| | | | | | | | | | | | | | | | | | Don't write in plaintext the password of an account which has full control over the repository. Instead use an account with read-only access.
| * | Merge pull request #2421 from libgit2/cmn/init-ssl-onceVicent Marti2014-06-144-16/+81
| |\ \ | | |/ | |/| netops: init OpenSSL once under lock
| | * ssl: init everything all the timecmn/init-ssl-onceCarlos Martín Nieto2014-06-123-87/+51
| | | | | | | | | | | | | | | | | | | | | | | | Bring together all of the OpenSSL initialization to git_threads_init() so it's together and doesn't need locks. Moving it here also gives us libssh2 thread safety (when built against openssl).
| | * ssl: init also without threadsCarlos Martín Nieto2014-06-121-9/+10
| | |
| | * ssl: cargo-cult thread safetyCarlos Martín Nieto2014-06-124-23/+46
| | | | | | | | | | | | OpenSSL's tests init everything in the main thread, so let's do that.
| | * ssl: use lockingCarlos Martín Nieto2014-06-111-0/+42
| | | | | | | | | | | | | | | | | | | | | | | | When using in a multithreaded context, OpenSSL needs to lock, and leaves it up to application to provide said locks. We were not doing this, and it's just luck that's kept us from crashing up to now.
| | * netops: init OpenSSL once under lockCarlos Martín Nieto2014-06-113-2/+37
| | | | | | | | | | | | | | | | | | | | | | | | The OpenSSL init functions are not reentrant, which means that running multiple fetches in parallel can cause us to crash. Use a mutex to init OpenSSL, and since we're adding this extra checks, init it only once.
| * | http: fix typo in credentials logicCarlos Martín Nieto2014-06-131-1/+1
| | | | | | | | | | | | | | | We want to check whether the credentials callback is NULL, not whether the payload is.
| * | remote: update documentationCarlos Martín Nieto2014-06-111-18/+60
| | | | | | | | | | | | | | | Add docs for git_clone_local_t and move the docs for the git_clone_options to each field.
| * | Merge pull request #2417 from libgit2/cmn/revwalk-array-fixVicent Marti2014-06-111-2/+2
| |\ \ | | | | | | | | revwalk: more sensible array handling
| | * | revwalk: more sensible array handlingcmn/revwalk-array-fixCarlos Martín Nieto2014-06-111-2/+2
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | Instead of using a sentinel empty value to detect the last commit, let's check for when we get a NULL from popping the stack, which lets us know when we're done. The current code causes us to read uninitialized data, although only on RHEL/CentOS 6 in release mode. This is a readability win overall.
| * | Merge pull request #2416 from libgit2/cmn/treebuilder-insert-sortedVicent Marti2014-06-101-2/+2
| |\ \ | | | | | | | | treebuilder: insert sorted
| | * | treebuilder: insert sortedcmn/treebuilder-insert-sortedCarlos Martín Nieto2014-06-101-2/+2
| | | | | | | | | | | | | | | | | | | | By inserting in the right position, we can keep the vector sorted, making entry insertion almost twice as fast.
| * | | pathspec: use C guards in headerCarlos Martín Nieto2014-06-101-0/+3
| |/ /
| * | remote: fix rename docsCarlos Martín Nieto2014-06-091-3/+0
| | |
| * | Merge branch 'cmn/soversion' into developmentCarlos Martín Nieto2014-06-082-3/+8
| |\ \
| | * | Bump version to 0.21.0Carlos Martín Nieto2014-06-081-3/+3
| | | | | | | | | | | | | | | | Bump library version to 0.21.0 and SONAME to 21
| | * | Change SOVERSION at API breakscmn/soversionCarlos Martín Nieto2014-06-082-1/+6
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | Since the SOVERSION doesn't need to follow the library's version and simply needs to be monotonically increasing whenever we release something that breaks the ABI, we can set some number and allow multiple versions of the library to be installed side-by-side. We start here with the minor version as that's what we release for now, and it allows to backport this change to earlier versions.
| * | Merge pull request #2407 from libgit2/cmn/remote-rename-morev0.21.0-rc1Vicent Marti2014-06-085-115/+191
| |\ \ | | | | | | | | More remote rename fixes
| | * | remote: don't free the remote on deletecmn/remote-rename-moreCarlos Martín Nieto2014-06-063-5/+1
| | | | | | | | | | | | | | | | This was a bad idea. Don't free except in the free function.
| | * | remote: handle symrefs when renamingCarlos Martín Nieto2014-06-061-10/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | A symref inside the namespace gets renamed, we should make it point to the target's new name. This is for the origin/HEAD -> origin/master type of situations.
| | * | remote: failing test for renaming with a symrefCarlos Martín Nieto2014-06-061-0/+48
| | | |
| | * | remote: return problem refspecs instead of using a callbackCarlos Martín Nieto2014-06-064-56/+87
| | | | | | | | | | | | | | | | | | | | | | | | There is no reason why we need to use a callback here. A string array fits better with the usage, as this is not an event and we don't need anything from the user.
| | * | remote: make sure the name stays valid on renameCarlos Martín Nieto2014-06-061-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | We must make sure that the name pointer remains valid, so make sure to allocate the new one before freeing the old one and swap them so the user never sees an invalid pointer.
| | * | remote: remove rename code for anonymous remotesCarlos Martín Nieto2014-06-061-42/+11
| | |/ | | | | | | | | | | | | | | | | | | | | | We don't allow renames of anonymous remotes, so there's no need to handle them. A remote is always associated with a repository, so there's no need to check for that.
| * | Merge pull request #2409 from phkelley/win32_thread_fixesVicent Marti2014-06-088-71/+107
| |\ \ | | | | | | | | Win32: Fix object::cache::threadmania test on x64
| | * | React to review feedbackPhilip Kelley2014-06-073-18/+26
| | | |
| | * | Win32: Fix object::cache::threadmania test on x64Philip Kelley2014-06-078-68/+96
| |/ /
| * | Merge pull request #2408 from phkelley/win32_test_fixesPhilip Kelley2014-06-072-2/+5
| |\ \ | | |/ | |/| Win32 test fixes
| | * Win32: Fix diff::workdir::submodules test #2361Philip Kelley2014-06-071-2/+2
| | |
| | * Win32: Fix failing clone_mirror testPhilip Kelley2014-06-071-0/+3
| |/
| * Merge pull request #2404 from libgit2/cmn/remote-rename-fixesVicent Marti2014-06-062-7/+39
| |\ | | | | | | Remote rename fixes
| | * remote: tighten up reference renamingcmn/remote-rename-fixesCarlos Martín Nieto2014-06-061-7/+9
| | | | | | | | | | | | | | | | | | | | | | | | Tighten up which references we consider for renaming so we don't try to rename unrelated ones and end up with unexplained references. If there is a reference on the target namespace, git overwrites it, so let's do the same.
| | * remote: failing test for renameCarlos Martín Nieto2014-06-061-0/+30
| | | | | | | | | | | | | | | When there is a reference in the target namespace, we should overwrite it. Instead it gets a different name under the current code.
| * | Merge pull request #2405 from arthurschreiber/patch-4Vicent Marti2014-06-061-0/+1
| |\ \ | | |/ | |/| Update AUTHORS
| | * Update AUTHORSArthur Schreiber2014-06-061-0/+1
| |/ | | | | | | Add me. :)
| * Merge pull request #2399 from libgit2/cmn/path-to-pathVicent Marti2014-06-034-35/+26
| |\ | | | | | | clone: re-use the local transport's path resolution
| | * clone: re-use the local transport's path resolutioncmn/path-to-pathCarlos Martín Nieto2014-06-034-35/+26
| | | | | | | | | | | | | | | | | | Whe already worked out the kinks with the function used in the local transport. Expose it and make use of it in the local clone method instead of trying to work it out again.
| * | Merge pull request #2395 from libgit2/cmn/ref-iter-concurrentRussell Belfer2014-06-032-8/+49
| |\ \ | | |/ | |/| Concurrent ref iterator access
| | * refs: copy the packed refs on iterationcmn/ref-iter-concurrentCarlos Martín Nieto2014-06-021-8/+16
| | | | | | | | | | | | | | | This lets us work without worrying about what's happening but work on a snapshot.
| | * refs: failing test for concurrent ref accessCarlos Martín Nieto2014-06-021-0/+33
| | | | | | | | | | | | | | | If we remove a reference while we're iterating through the packed refs, the position in the iterator will be off.
| * | Merge pull request #2389 from ↵Vicent Marti2014-06-032-0/+10
| |\ \ | | | | | | | | | | | | | | | | arthurschreiber/arthur/set-error-when-no-remote-found Remote: Set an error when a remote cannot be found.
| | * | Remote: Set an error when a remote cannot be found.Arthur Schreiber2014-05-302-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Inside `git_remote_load`, the calls to `get_optional_config` use `giterr_clear` to unset any errors that are set due to missing config keys. If neither a fetch nor a push url config was found for a remote, we should set an error again.
| * | | Merge pull request #2396 from libgit2/cmn/docstuffVicent Marti2014-06-035-86/+89
| |\ \ \ | | | | | | | | | | Documentation formatting fixes
| | * | | index: split GIT_IDXENTRY into two flag enumscmn/docstuffCarlos Martín Nieto2014-06-031-28/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The documentation has shown this as a single enum for a long time. These should in fact be two enums. One with the bits for the flags and another with the bits for the extended flags.
| | * | | Formatting fixes for the docsCarlos Martín Nieto2014-06-035-58/+58
| | | |/ | | |/| | | | | | | | | | | | | These are some issues I found while playing around with the new parser for docurium.