| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Now that we've reduced the usage of GIT_THREADSTATE, remove it entirely
in favor of git_threadstate_get().
|
|
|
|
|
|
| |
git_oid_tostr_s could fail if thread-local state initialization fails.
In that case, it will now return `NULL`. Callers should check for
`NULL` and propagate the failure.
|
|
|
|
|
|
| |
Thread-local storage data may fail to initialize; in this case, do not
try to set the error message into it. When the thread state has not
been initialized, return a hardcoded message to that affect.
|
| |
|
|\
| |
| | |
Define correct off64_t for AIX
|
| |
| |
| |
| | |
This reverts commit 1fde70bb607c7ba471db359f045affd1f5625e5d.
|
| | |
|
| |
| |
| |
| | |
See `/usr/include/sys/types.h` on AIX.
|
|\ \
| | |
| | | |
#6422: handle dangling symbolic refs gracefully
|
| | | |
|
|\ \ \ |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Fixes issue #6156.
Signed-off-by: Sven Strickroth <email@cs-ware.de>
|
|\ \ \ \
| | | | |
| | | | | |
Fix build failure with -DEMBED_SSH_PATH
|
| | |_|/
| |/| | |
|
|\ \ \ \
| | | | |
| | | | | |
diff_file: Fix crash when freeing a patch representing an empty untracked file
|
| | |/ /
| |/| |
| | | |
| | | | |
This prevents GIT_MMAP_VALIDATE from failing.
This also prevents git_diff_file_content__unload from attempting to free git_str__initstr.
|
|\ \ \ \
| | | | |
| | | | | |
Support OpenSSL 3 in dynamic loading mode
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Try to load OpenSSL 3 libraries when compiled with OpenSSL-Dynamic
support.
Handle the deprecated symbol renaming of SSL_get_peer_certificate to
SSL_get1_peer_certificate -- try to load the old name and if it fails,
use the new one.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
When we fail to initialize the OpenSSL subsystem, don't assume that
we're "initialized". Subsequent initialization requests -- if there are
any -- should replay initialization and fail again.
|
|\ \ \ \ \
| |_|/ / /
|/| | | | |
Add new PHP bindings project to language bindings section of README.md
|
|/ / / /
| | | |
| | | |
| | | |
| | | | |
Updates the README.md language binding section to reference a new
project providing PHP bindings at https://github.com/RogerGee/php-git2.
|
|\ \ \ \
| |/ / /
| | | | |
Support OpenSSL3: add OpenSSL deprection warning compatibility flag
|
|/ / /
| | |
| | |
| | |
| | | |
Add `OPENSSL_API_COMPAT=0x10100000L` since we use the now-deprecated
low-level hash functions.
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
`git_clone` checks for existence of (non-empty) directories that would clash with what is about to be cloned.
This is problematic when cloning submodules since they make sense in the context of a parent module, so they should not use the current working dir.
Since in `git_submodule_update` we clone the submodule only when it is not yet initialized we do not need to perform directory checks.
|
|\ \ \ \
| | | | |
| | | | | |
ci: always create test summaries, even on failure
|
| | | | | |
|
| | | | | |
|
|/ / / /
| | | |
| | | |
| | | |
| | | | |
When the dependent jobs fail -- possibly due to test failures -- we
should still produce the job summary that shows those test failures.
|
|\ \ \ \
| | | | |
| | | | | |
tests: update clar test runner
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Abstract time counter for tests; use gettimeofday on Unix and
GetTickCount on Windows.
|
| | | | | |
|
|/ / / /
| | | |
| | | |
| | | |
| | | | |
Update to the latest main version of clar, which includes improved xml
summary output.
|
|\ \ \ \
| | | | |
| | | | | |
src: hide unused hmac() prototype
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
The builtin hash uses the code verbatim from rfc6234, including
prototypes for functions that we don't use (like hmac). Remove all
unused prototypes to avoid collisions with things that an operating
system might provide (like hmac).
|
|/ / / /
| | | |
| | | |
| | | |
| | | |
| | | | |
It conflicts with NetBSD's in its libc.
Closes #6457
|
|\ \ \ \
| | | | |
| | | | | |
push: use resolved oid as the source
|
|/ / / /
| | | |
| | | |
| | | |
| | | | |
211c97195e2ebcf68e27782715eb756823ad5a91 attempts to use the parsed OID
but inverted the arguments to `git_oid_cpy`.
|
|\ \ \ \
| | | | |
| | | | | |
push: revparse refspec source, so you can push things that are not refs
|
| | |/ /
| |/| |
| | | |
| | | | |
I want to push a commit by OID to a remote branch. Currently, push parses the refspecs such that the source must be the name of a ref (it uses git_reference_name_to_id to resolve it). This commit changes it so push uses git_revparse_single to resolve the source of the refspec. This allows for OIDs or other revs (e.g. `HEAD~2`) to be pushed.
|
|\ \ \ \
| | | | |
| | | | | |
thread: avoid warnings when building without threads
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
`git__noop` takes no arguments, so a simple `#define func(a) git__noop`
will produce warnings about the unused `a`. Introduce `git__noop_args`
to swallow arguments and avoid that warning.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
transport: fix capabilities calculation
|
| |/ / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This looks like a typo to me, from what i can see these lines were
added at the same time and because of how capabilities are calculated,
it's likely that this code will work in situations where these
capabilities were the last ones.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
ci: update version numbers of actions
|
| | | | | | |
|
|\ \ \ \ \ \
| |/ / / / /
|/| | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
The server and client negotiate a single hostkey, but the "best" cipher may not
be the one for which we have an entry in `known_hosts`. This can lead to us not
finding the key in known_hosts even though we should be connecting.
Instead here we look up the hostname with a nonsense key to perform a lookup in
the known hosts and set that. This is roughly what the OpenSSH client does as
well.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
We're currently running it as part of the online suite but that doesn't have any
setup for ssh so we won't find the GitHub keys we set up during the test.
It doesn't need the private key setup as we just want to make sure we see some
auth request from the server, but with the addition of hostkey checking we're
now seeing it fail when we skip these tests.
|