| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
| |
We included their COPYING file, which was _not_ in fact their license.
Add the LICENSE file as well.
|
|
|
|
|
|
| |
Fix #5565
Pre-Android 5 did not implement a virtual filesystem atop FAT partitions for Unix permissions, which causes chmod to fail. However, Unix permissions have no effect on Android anyway as file permissions are not actually managed this way, so treating it as a no-op across all Android is safe.
|
|\
| |
| | |
httpclient: only free challenges for current_server type
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Prior to this commit we freed both the server and proxy auth challenges
in git_http_client_read_response. This works when the proxy needs auth
or when the server needs auth, but it does not work when both the proxy
and the server need auth as we erroneously remove the server auth
challenge before we have added them as server credentials. Instead only
remove the challenges for the current_server type.
Co-authored-by: Stephen Gelman <ssgelm@gmail.com>
|
|\ \
| | |
| | | |
Respect `init.defaultBranch` setting
|
| | |
| | |
| | |
| | |
| | | |
We don't use "master" as a hardcoded default in as many places; remove
the now unused master branch constant.
|
| | |
| | |
| | |
| | |
| | |
| | | |
When the remote does not tell us its default, we have to guess what the
default branch should be. Use our local initial branch configuration to
inform the remote branch default when we clone.
|
| | |
| | |
| | |
| | |
| | | |
We derive the branch name, even in our code, we shouldn't assume that
the branch will be "master".
|
| | |
| | |
| | |
| | |
| | |
| | | |
When cloning an empty repository, we need to guess what the branch
structure should be; instead of hardcoding `master`, use the
`init.defaultBranch` setting it if it provided.
|
| | |
| | |
| | |
| | |
| | |
| | | |
The git_repository_isempty function now respects the init.defaultbranch
setting (instead of hardcoding "master") to understand if a repository
is empty or not.
|
| | |
| | |
| | |
| | |
| | |
| | | |
Provide a helper function to get the initial branch for a repository,
respecting the `init.defaultBranch` configuration option, if set, and
returning the "default default" (currently `master`) otherwise.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
As part of a push towards more inclusive language, git is reconsidering
using "master" as the default branch name. As a first step, this
setting will be configurable with the `init.defaultBranch` configuration
option. Honor this during repository initialization.
During initialization, we will create an initial branch:
1. Using the `initial_head` setting, if specified;
2. Using the `HEAD` configured in a template, if it exists;
3. Using the `init.defaultBranch` configuration option, if it is set; or
4. Using `master` in the absence of additional configuration.
|
|\ \ \
| | | |
| | | | |
patch_parse: handle absence of "index" header for new/deleted cases
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This follows up on 11de594f85479e4804b07dc4f7b33cfe9212bea0 which added
support for parsing patches without extended headers (the "index
<hash>..<hash> <mode>" line); issue #5267.
We now allow transition from "file mode" state to "path" state directly
if there is no "index", which will happen for patches adding or deleting
files as demonstrated in added test case.
|
|\ \ \ \
| | | | |
| | | | | |
boolean config parsing fails in some cases with mapped values
|
| | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: Sven Strickroth <email@cs-ware.de>
|
| | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: Sven Strickroth <email@cs-ware.de>
|
| | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: Sven Strickroth <email@cs-ware.de>
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
git_config_lookup_map_value
Signed-off-by: Sven Strickroth <email@cs-ware.de>
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Fix config file parsing with multi line values containing quoted parts
|
| |/ / / /
| | | | |
| | | | |
| | | | | |
Signed-off-by: Sven Strickroth <email@cs-ware.de>
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Fix release build warnings
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
When trying to the template dir, we pass in a `NULL` pointer for the
filename. That's perfectly fine, but if we're failing to find the
template directory then we'll creat an error message with the `NULL`
pointer passed in.
Fix the issue by setting different error messages based on whether the
filename is given or not. This even makes sense, as we're not searching
for a file in case we have no `name`, but for a directory. So the error
would've been misleading anyway.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
When building libgit2 with the release build type, then GCC complains
about mode being potentially uninitialized. While this seems to be a
false positive, let's silence this warning by zero-initializing the
mode.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
The `signature` variable in `git_reference_rename` isn't initialized and
neither does `git_reference__log_signature` always do. So if the latter
function fails, we'll call `git_signature_free` on this unininitialized
variable.
Fix the issue by initializing the pointer with `NULL`.
|
|\ \ \ \ \ \
| |/ / / / /
|/| | | | | |
Fix deprecation links inside of documentation not working
|
| |/ / / /
| | | | |
| | | | |
| | | | | |
Signed-off-by: Sven Strickroth <email@cs-ware.de>
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Fix typo: Make ifndef macroname the same as the define name
|
| |/ / / /
| | | | |
| | | | |
| | | | | |
Signed-off-by: Sven Strickroth <email@cs-ware.de>
|
|\ \ \ \ \
| | | | | |
| | | | | | |
diff stats: fix segfaults with new files
|
| | |/ / /
| |/| | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
WinHTTP: Try to use TLS1.3
|
| | |/ / /
| |/| | |
| | | | |
| | | | | |
Signed-off-by: Sven Strickroth <email@cs-ware.de>
|
|\ \ \ \ \
| |/ / / /
|/| | | | |
Fixed includes for FreeBSD
|
| | | | | |
|
|/ / / / |
|
|\ \ \ \
| | | | |
| | | | | |
Don't fail if a HTTP server announces he supports a protocol upgrade
|
|/ / / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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>
|
|\ \ \ \
| | | | |
| | | | | |
Return false instead of segfaulting when checking for default port
|
| | |/ /
| |/| |
| | | |
| | | |
| | | |
| | | |
| | | | |
`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).
|
|\ \ \ \
| | | | |
| | | | | |
deps: ntlmclient: fix htonll for Haiku
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
We explicitly pass win32 & macOS, although some old version might not
have it.
|
| |/ / /
| | | |
| | | |
| | | | |
Use B_HOST_TO_BENDIAN_INT64 for that.
|
|\ \ \ \
| |_|/ /
|/| | | |
azure: Remove job generating documentation
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
|\ \ \
| | | |
| | | | |
Fix crash in git_describe_commit when opts are NULL.
|
|/ / /
| | |
| | |
| | |
| | | |
The argument "opts" can be NULL, which selects default options. Do not access
"opts" directly but only the normalized copy.
|
|\ \ \
| | | |
| | | | |
Fix `git_mwindow_scan_recently_used` spuriously returning true
|