- 30 Jun, 2021 34 commits
-
-
This just fixes a typo in the documentation, actual rename change was done in 5f69a31f
Marco Sirabella committed -
We already do this in repo_init_head
Ian Hattendorf committed -
In some circumstances (e.g. when proxies are involved), winhttp will fail to reach the WINHTTP_CALLBACK_STATUS_SENDING_REQUEST phase. If this occurs, we'll error with ERROR_WINHTTP_INCORRECT_HANDLE_STATE when attempting to query the server certificate context (see https://docs.microsoft.com/en-us/windows/win32/api/winhttp/nf-winhttp-winhttpsendrequest#remarks). To avoid this, verify that WinHttpSendRequest has reached the WINHTTP_CALLBACK_STATUS_SENDING_REQUEST phase before checking the certificate. Since we're using WinHTTP in synchronous mode, we know for sure that once WinHttpSendRequest returns we've either sent it successfully or not. NOTE: WINHTTP_CALLBACK_STATUS_SENDING_REQUEST appears to be deprecated with no direct replacement. WINHTTP_CALLBACK_STATUS_SENDREQUEST_COMPLETE is only available in async mode, and there doesn't appear to be a method of querying this flag outside of the status callback.
Ian Hattendorf committed -
Ian Hattendorf committed
-
insert_head_ids can fail due to allocation error
panda committed -
git_signature_dup can have an allocation failure
panda committed -
Tobias Nießen committed
-
The enum 'git_repository_init_flag_t', 'git_repository_init_mode_t' and the structure 'git_repository_init_options' does not follow the format used by docurium.
punkymaniac committed -
This is for extra safety within write_entries
panda committed -
If allocating case_sorted.contents fails, git_vector_sort will segfault.
panda committed -
To prevent a race condition, these wlock/rlock calls should probably be checked for errors.
panda committed -
This change now updates the `lru_window` variable to match the current file's MRU window. This makes it such that it doesn't always choose the file that happened to come last in the list of window files, and instead should now correctly choose the file with the least-recently-used one.
lhchavez committed -
When a branch is specified to check out in clone, update the remote tracking `HEAD` to point to it. This mimics git's behavior, when `git clone -b <name>` is used.
Edward Thomson committed -
This change stops using the seek+read/write combo to perform I/O with an offset, since this is faster by one system call (and also more atomic and therefore safer).
lhchavez committed -
The init.defaultbranch option may be set, but empty. In this case, we should ignore it instead of trying to set our default branch to `refs/heads/`.
Edward Thomson committed -
If a symbolic reference points to something invalid, then do not try to update it.
Edward Thomson committed -
When HEAD points to a nonexistent or invalid branch - for example, to `refs/heads/` - the fetch should be permitted to continue, but we should not use it when creating the `for merge` option in the FETCH_HEAD file. (This emulates git's behavior.)
Edward Thomson committed -
Adds info about initializing options with git_blob_filter_options_init
Josh Stockin committed -
The `git_blob_filter_options_init` function should be included, to allow callers in FFI environments to let us initialize an options structure for them.
Edward Thomson committed -
Josh Stockin committed
-
Removes doc comment on `git_blob_filter_options.version`, moves information to `git_blob_filter_options` doc comment to remain consistent with other options structures' documentation. `git_blob_filter_options_init` still needed; should be added in another commit/PR (it's out of the scope of this PR, #5759), update this documentation again.
Josh Stockin committed -
Resolves #5756
Josh Stockin committed -
* Use pread/pwrite to avoid updating position in file descriptor * Emulate missing pread/pwrite on win32 using overlapped file IO
Dhruva Krishnamurthy committed -
* Emulated mmap based write without pagefault handling is not possible since IO happens outside of call to mmap and data is written to mapped memory * Potential emulation using userfaultfd() might be possible
Dhruva Krishnamurthy committed -
Continue the zlib stream as long as we can make progress; stop when we stop getting output _or_ when zlib stops taking input from us.
Edward Thomson committed -
Edward Thomson committed
-
Reginald McLean committed
-
Fixes #5280
Reginald McLean committed -
worktree_dir isn't validated when it should be
Reginald McLean committed -
Without this, mbedTLS installs in non-default install locations that are otherwise found by the `FindmbedTLS.cmake` module are not found by the C preprocessor at compile time.
Elliot Saba committed -
Update ntlm to include an htonll that is not dependent on system libraries.
Edward Thomson committed -
This change avoids using the `(void)0` construct for some of the mutex `#define`s, since that makes the "return type" of those "functions" to be `void` instead of `int`.
lhchavez committed -
This should allow folks that build in non-thread-safe environments to still be able to build the library. Fixes: #5663
lhchavez committed -
Edward Thomson committed
-
- 29 Jun, 2021 5 commits
-
-
Since we're using atomic primitives to read and write into the config map cache, we need to read/write something pointer-sized. Use an `intptr_t` for the config map cache.
Edward Thomson committed -
Edward Thomson committed
-
Move `git_reference__is_valid_name` to `git_reference__name_is_valid`, which returns errors and sets an out boolean parameter.
Edward Thomson committed -
Cherry-pick `git__add_int64_overflow` functionality introduced in e99e833f.
Edward Thomson committed -
ci: add manual dispatch event for 1.1 branch
Edward Thomson committed
-
- 27 Jun, 2021 1 commit
-
-
Edward Thomson committed
-