Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-08-25Merge pull request #3355 from palmin/palmin/fix-2830HEADmasterCarlos Martín Nieto
Include the 4 characters not recognised as hex-number in parse_len
2015-08-20Merge pull request #3388 from libgit2/cmn/smart-callbacksCarlos Martín Nieto
transport: provide a way to get the callbacks
2015-08-20Merge pull request #3389 from libgit2/cmn/old-securityCarlos Martín Nieto
CMake: fall back to OpenSSL on older OS X
2015-08-19CMake: fall back to OpenSSL on older OS XCarlos Martín Nieto
Starting at OS X 10.8, the Security framework offers some functions which are unified across OS X and iOS. These are the functions that we use. Older versions of OS X do not have these functions and we fail to compile. In these situations, fall back to using OpenSSL for our TLS stream instead.
2015-08-19cred: add a free function wrapperCarlos Martín Nieto
2015-08-19transport: provide a way to get the callbacksCarlos Martín Nieto
libgit2 implementations of smart subtransports can simply reach through the structure, but external implementors cannot. Add these two functions as a way for the smart subtransports to get the callbacks as set by the user.
2015-08-18Merge pull request #3387 from leoyanggit/build_warningCarlos Martín Nieto
Fix build warning: implicit declaration of function ‘git_transaction_config_new’
2015-08-17Fix build warning: implicit declaration of function ↵Leo Yang
‘git_transaction_config_new’
2015-08-17Include the 4 characters not recognised as hex-number when setting error in ↵Anders Borum
parse_len
2015-08-15Merge pull request #3377 from dleehr/fix-push-cbEdward Thomson
Fix bug in git_smart__push: push_transfer_progress cb is only called at end
2015-08-15Merge pull request #3384 from libgit2/cmn/regex-nofailEdward Thomson
diff: don't error out on an invalid regex
2015-08-15Merge pull request #3383 from libgit2/cmn/http-errorEdward Thomson
http: propagate the credentials callback's error code
2015-08-15diff: don't error out on an invalid regexCarlos Martín Nieto
When parsing user-provided regex patterns for functions, we must not fail to provide a diff just because a pattern is not well formed. Ignore it instead.
2015-08-15http: propagate the credentials callback's error codeCarlos Martín Nieto
When we ask for credentials, the user may choose to return EUSER to indicate that an error has happened on its end and it wants to be given back control. We must therefore pass that back to the user instead of mentioning that it was on_headers_complete() that returned an error code. Since we can, we return the exact error code from the user (other than PASSTHROUGH) since it doesn't cost anything, though using other error codes aren't recommended.
2015-08-14Merge pull request #3362 from libgit2/cmn/curl-proxyauth-anyCarlos Martín Nieto
curl: use the most secure auth method for the proxy
2015-08-14Fix bug in git_smart__push: push_transfer_progress cb is never calledDan Leehr
The conditional checked cbs->transfer_progress then used the value in cbs->push_transfer_progress. In both cases it should be push_transfer_progress
2015-08-13Merge pull request #3168 from libgit2/cmn/config-txEdward Thomson
Locking and transactional/atomic updates for config
2015-08-12Merge pull request #3372 from libgit2/cmn/mirror-refspecEdward Thomson
remote: don't confuse tag auto-follow rules with refspec matching
2015-08-12config: perform unlocking via git_transactionCarlos Martín Nieto
This makes the API for commiting or discarding changes the same as for references.
2015-08-12config: expose locking via the main APICarlos Martín Nieto
This lock/unlock pair allows for the cller to lock a configuration file to avoid concurrent operations. It also allows for a transactional approach to updating a configuration file. If multiple updates must be made atomically, they can be done while the config is locked.
2015-08-12config: implement basic transactional supportCarlos Martín Nieto
When a configuration file is locked, any updates made to it will be done to the in-memory copy of the file. This allows for multiple updates to happen while we hold the lock, preventing races during complex config-file manipulation.
2015-08-12config: write the modified file to memoryCarlos Martín Nieto
Instead of writing into the filebuf directly, make the functions to write the modified config file write into a buffer which can then be dumped into the lockfile for committing. This allows us to re-use the same code for modifying a locked configuration, as we can simply skip the last step of dumping the data to disk.
2015-08-12Merge pull request #3363 from ripdev/masterCarlos Martín Nieto
Forcing libssh2 lib location in CMake
2015-08-11remote: don't confuse tag auto-follow rules with refspec matchingCarlos Martín Nieto
When we're looking to update a tag, we can't stop if the tag auto-follow rules don't say to update it. The tag might still match the refspec we were given.
2015-08-11remote: add failing test for a mirror refspecCarlos Martín Nieto
While we download the remote's remote-tracking branches, we don't download the tag. This points to the tag auto-follow rules interfering with the refspec.
2015-08-06curl: use the most secure auth method for the proxyCarlos Martín Nieto
When curl uses a proxy, it will only use Basic unless we prompt it to try to use the most secure on it has available. This is something which git did recently, and it seems like a good idea.
2015-08-06Forcing libssh2 lib locationSlava Karpenko
OS X may have libssh2 in diff locations, so CHECK_LIBRARY_EXISTS may check the wrong lib; forcing it to use a found directory.
2015-08-06Merge pull request #3360 from nodegit/master-duplicate-basename-fixEdward Thomson
Fix duplicate basenames to support older VS on master
2015-08-05Fix duplicate basenames to support older VSJohn Haley
With Visual Studio versions 2008 and older they ignore the full path to files and only check the basename of the file to find a collision. Additionally, having duplicate basenames can break other build tools like GYP. This fixes https://github.com/libgit2/libgit2/issues/3356
2015-08-04Merge pull request #3351 from ethomson/error_bufCarlos Martín Nieto
Error handling: use buffers, improved OOM handling
2015-08-04errors: tighten up git_error_state OOMs a bit moreEdward Thomson
When an error state is an OOM, make sure that we treat is specially and do not try to free it.
2015-08-03Merge remote-tracking branches 'upstream/pr/3323' and 'upstream/pr/3329'Edward Thomson
2015-08-03Test: check restored oom error points to static bufferMichael Procter
2015-08-03Make giterr_restore aware of g_git_oom_errorMichael Procter
Allow restoring a previously captured oom error, by detecting when the captured message pointer points to the static oom error message. This means there is no need to strdup the message in giterr_detach.
2015-08-03Make giterr_detach no longer publicMichael Procter
2015-08-03Ensure static oom error message not detachedMichael Procter
Error messages that are detached are assumed to be dynamically allocated. Passing a pointer to the static oom error message can cause an attempt to free the static buffer later. This change checks if the oom error message is about to be detached and detaches a copy instead.
2015-08-03Add failing test for capture/restore oom errorMichael Procter
2015-08-03Merge pull request #3325 from libgit2/cmn/filebuf-rename-errorEdward Thomson
filebuf: remove lockfile upon rename errors
2015-08-03Merge pull request #3344 from libgit2/cmn/add-unreg-submoduleEdward Thomson
index: stage an unregistered submodule as well
2015-08-03Merge pull request #3348 from MrHacky/remote-path-with-tildeCarlos Martín Nieto
Handle ssh:// and git:// urls containing a '~' character.
2015-08-03Handle ssh:// and git:// urls containing a '~' character.Simon
For such a path '/~/...' the leading '/' is stripped so the server will get a path starting with '~' and correctly handle it.
2015-08-01index: stage an unregistered submodule as wellCarlos Martín Nieto
We previously added logic to `_add_bypath()` to update a submodule. Go further and stage the submodule even if it's not registered to behave like git.
2015-08-01index: test that an unregistered submodule gets stagedCarlos Martín Nieto
When we pass the path of a repository to `_bypath()`, we should behave like git and stage it as a `_COMMIT` regardless of whether it is registered a a submodule.
2015-08-01index: add test for adding an old-style submodule to indexLinquize
2015-08-01Merge pull request #3332 from phatblat/ben/doc-warningsCarlos Martín Nieto
Resolve documentation warnings
2015-07-31Merge pull request #3341 from stewid/pedantic-compiler-warningEdward Thomson
Remove extra semicolon outside of a function
2015-07-31Remove extra semicolon outside of a functionStefan Widgren
Without this change, compiling with gcc and pedantic generates warning: ISO C does not allow extra ‘;’ outside of a function.
2015-07-30Merge pull request #3328 from libgit2/cmn/iterator-skip-diriterEdward Thomson
iterator: skip over errors in diriter init
2015-07-30Merge pull request #3339 from palmin/palmin-issue-3338Edward Thomson
case-insensitive check for WWW-Authenticate header
2015-07-29case-insensitive check for WWW-Authenticate headerAnders Borum
Fixes issue #3338