- 18 Sep, 2020 1 commit
-
-
Fix typo: Make ifndef macroname the same as the define name
Patrick Steinhardt committed
-
- 17 Sep, 2020 1 commit
-
-
diff stats: fix segfaults with new files
Edward Thomson committed
-
- 16 Sep, 2020 1 commit
-
-
Drew DeVault committed
-
- 15 Sep, 2020 2 commits
-
-
WinHTTP: Try to use TLS1.3
Edward Thomson committed -
Fixed includes for FreeBSD
Edward Thomson committed
-
- 14 Sep, 2020 2 commits
-
-
Philipp committed
-
Signed-off-by: Sven Strickroth <email@cs-ware.de>
Sven Strickroth committed
-
- 10 Sep, 2020 1 commit
-
-
Signed-off-by: Sven Strickroth <email@cs-ware.de>
Sven Strickroth committed
-
- 09 Sep, 2020 1 commit
-
-
Philipp committed
-
- 08 Sep, 2020 2 commits
-
-
Don't fail if a HTTP server announces he supports a protocol upgrade
Edward Thomson committed -
cf. RFC7230 section 6.7, an Upgrade header in a normal response merely informs the client that the server supports upgrading to other protocols, and the client can ask for such an upgrade in a later request. The server requiring an upgrade is via the 426 Upgrade Required response code, not the mere presence of the Upgrade response header. (closes issue #5573) Signed-off-by: Sven Strickroth <email@cs-ware.de>
Sven Strickroth committed
-
- 01 Sep, 2020 1 commit
-
-
Return false instead of segfaulting when checking for default port
Edward Thomson committed
-
- 31 Aug, 2020 3 commits
-
-
`default_port_for_scheme` returns NULL if the scheme is not one of the builtin ones. This may cause a segmentation fault if a custom transport URL happens to contain a port number, and this code path is triggered (e.g. by setting git_fetch_options->update_fetchhead to 1).
Kim Altintop committed -
deps: ntlmclient: fix htonll for Haiku
Edward Thomson committed -
azure: Remove job generating documentation
Edward Thomson committed
-
- 28 Aug, 2020 1 commit
-
-
Fix crash in git_describe_commit when opts are NULL.
Edward Thomson committed
-
- 27 Aug, 2020 1 commit
-
-
The argument "opts" can be NULL, which selects default options. Do not access "opts" directly but only the normalized copy.
Christoph Thelen committed
-
- 24 Aug, 2020 4 commits
-
-
With the recent addition of GitHub Actions to our CI infrastructure, we now have two jobs which generate documentation: once in GHA, once in Azure. Naturally, as they both want to update the same branch, they race against each other and one of both jobs will fail. Fix this by removing the documentation job from Azure.
Patrick Steinhardt committed -
Fix `git_mwindow_scan_recently_used` spuriously returning true
Patrick Steinhardt committed -
zstream: handle Z_BUF_ERROR appropriately in get_output_chunk
Patrick Steinhardt committed -
docs: fix typo
Patrick Steinhardt committed
-
- 21 Aug, 2020 2 commits
-
-
We explicitly pass win32 & macOS, although some old version might not have it.
François Revol committed -
Use B_HOST_TO_BENDIAN_INT64 for that.
François Revol committed
-
- 18 Aug, 2020 1 commit
-
-
Sven committed
-
- 05 Aug, 2020 4 commits
-
-
Andrew Hickman committed
-
Andrew Hickman committed
-
Edward Thomson committed
-
Our processing loop in git_zstream_get_output_chunk does not handle `Z_BUF_ERROR` appropriately at the end of a compressed window. From the zlib manual, inflate will return: > Z_BUF_ERROR if no progress was possible or if there was not enough > room in the output buffer when Z_FINISH is used. Note that Z_BUF_ERROR > is not fatal, and inflate() can be called again with more input and > more output space to continue decompressing. In our loop, we were waiting until we got the expected size, then ensuring that we were at `Z_STREAM_END`. We are not guaranteed to be, since zlib may be in the `Z_BUF_ERROR` state where it has consumed a full window's worth of data, but it doesn't know that it's really at the end of the stream. There _could_ be more compressed data, but it doesn't _know_ that there's not until we make a subsequent call. We can change the loop to look for the end of stream instead of our expected size. This allows us to call inflate one last time when we are at the end of a window (and in the `Z_BUF_ERROR` state), allowing it to recognize the end of the stream, and move from the `Z_BUF_ERROR` state to the `Z_STREAM_END` state. If we do this, we need another exit condition: when `bytes == 0`, then no progress could be made and we should stop trying to inflate. This will be an error case, caught by the size and/or end-of-stream test.
Edward Thomson committed
-
- 03 Aug, 2020 5 commits
-
-
sanitizer ci: skip negotiate tests
Edward Thomson committed -
We don't build with SPNEGO enabled on our focal-based sanitizer builds, so we need to disable the negotiate tests.
Edward Thomson committed -
Add CI support for Memory and UndefinedBehavior Sanitizers
Edward Thomson committed -
Access HEAD via the refdb backends
Edward Thomson committed -
config_entries: Avoid excessive map operations
Edward Thomson committed
-
- 13 Jul, 2020 1 commit
-
-
When appending config entries, we currently always first get the currently existing map entry and then afterwards update the map to contain the current config value. In the common scenario where keys aren't being overridden, this is the best we can do. But in case a key gets set multiple times, then we'll also perform these two map operations. In extreme cases, hashing the map keys will thus start to dominate performance. Let's optimize the pattern by using a separately allocated map entry. Currently, we always put the current list entry into the map and update it to get any overridden multivar. As these list entries are also used to iterate config entries, we cannot update them in-place in the map and are thus forced to always set the map to contain the new entry. But with a separately allocated map entry, we can now create one once per config key and insert it into the map. Whenever appending a new config value with the same key, we can now just update the map entry in-place instead of having to replace the map entry completely. This reduces calls to the hashing function by half and trades the improved runtime for one more allocation per unique config key. Given that the refactoring arguably improves code readability by splitting concerns of the `config_entry_list` type and not having to track it in two different structures, this alone would already be reason enough to take the trade. Given a pathological case of a gitconfig with 100.000 repeated keys and a section of length 10.000 characters, this reduces runtime by half from approximately 14 seconds to 7 seconds as expected.
Patrick Steinhardt committed
-
- 12 Jul, 2020 6 commits
-
-
mwindow: set limit on number of open files
Edward Thomson committed -
lhchavez committed
-
In case where a branch is getting renamed, all HEADs of the main repository and of its worktrees that point to the old branch need to get updated to point to the new branch. We already do so and have a test for this, but the test only verifies that we're able to lookup the updated HEAD, not what it contains. Let's make the test more specific by verifying the updated HEAD also has the correct updated symbolic target.
Patrick Steinhardt committed -
With the last user of `git_reference__read_head` gone, let's remove it as it's been reading references without consulting the refdb backends.
Patrick Steinhardt committed -
The function `git_repository_head_for_worktree` currently uses `git_reference__read_head` to directly read a given worktree's HEAD from the filesystem. This is broken in case the repository uses a different refdb implementation than the filesystem-based one, so let's instead open the worktree as a real repository and use `git_reference_lookup`. This also fixes the case where the worktree's HEAD is not a symref, but a detached HEAD, which would have resulted in an error previously.
Patrick Steinhardt committed -
The function `git_repository_foreach_head` is broken, as it directly interacts with the on-disk representation of the reference database, thus assuming that no other refdb is used for the given repository. As this is an internal function only and all users have been replaced, let's remove this function.
Patrick Steinhardt committed
-