| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
The remote::httpproxy::env test (correctly) reset the environment before
running; however the other tests are also impacted by the environment
and need to have it isolated.
|
| |
|
|\
| |
| | |
stash: partial stash specific files
|
| | |
|
| | |
|
| | |
|
|\ \
| | |
| | | |
SHA256: more SHA256 support
|
| | |
| | |
| | |
| | |
| | | |
The longest path within a git repository is now a SHA256 format
packfile. Adjust our max length checking to match.
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
This is much of the plumbing for the object database to support SHA256,
and for objects to be able to parse SHA256 versions of themselves.
|
| | | |
|
| | |
| | |
| | |
| | | |
Teach the packfile machinery to cope with SHA256.
|
| | |
| | |
| | |
| | |
| | | |
In clar, an underscore is meaningful; avoid using it incorrectly /
unnecessarily.
|
| | |
| | |
| | |
| | | |
This is a conversion of the testrepo.git to SHA256 support.
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
Ensure that we maintain the `core.repositoryFormatVersion` value instead
of always overwriting it with the default.
|
| | |
| | |
| | |
| | |
| | |
| | | |
Teach the repository about the `objectformat` extension, supporting
`sha1` always and `sha256` when the experimental sha256 support is
active.
|
| | | |
|
|\ \ \
| | | |
| | | | |
Support the notion of a home directory separately from global configuration directory
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Teach the clone tests how to clone from github.com, when given a keypair
with a passphrase and known_hosts data. This allows us to better
exercise our known_hosts checking and ensure that the lifecycle of the
certificate callback matches our expectations.
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Use a dummy home directory for tests to avoid user data leaking into
test execution.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Now that we've split the notion of the home directory from the global
configuration store, our tests should use the appropriate one based on
what they're doing.
|
| |/ /
| | |
| | |
| | |
| | |
| | | |
The windows sysdir functions are libgit2-specific and for git
compatibility only; remove them from the shared util directory and bring
them into the libgit2 source tree.
|
|\ \ \
| | | |
| | | | |
#6422: handle dangling symbolic refs gracefully
|
| | | | |
|
|\ \ \ \ |
|
| | |/ /
| |/| |
| | | |
| | | |
| | | |
| | | | |
Fixes issue #6156.
Signed-off-by: Sven Strickroth <email@cs-ware.de>
|
|/ / /
| | |
| | |
| | | |
This prevents GIT_MMAP_VALIDATE from failing.
This also prevents git_diff_file_content__unload from attempting to free git_str__initstr.
|
| | |
| | |
| | |
| | |
| | | |
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.
|
|\ \ \
| | | |
| | | | |
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.
|
|\ \ \ \ |
|
| | |/ /
| |/| |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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.
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Verify that trying to update submodule which has been configured but not added does return an error.
Issue #6433: git_submodule_update fails to update configured but missing submodule
|
|\ \ \ \
| | | | |
| | | | | |
URL parsing for google-compatible URLs
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Enforce the RFC for other protocols; Google's questionable choices about
malformed SSH protocols shouldn't impact our ability to properly parse
HTTPS.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Provide our own url parser, so that we can handle Google Code's "fun"
URLs that have a userinfo with an `@` in it. :cry:
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
The url::scp::invalid_addresses test attempts to test an invalid IPv6
address. It does not, it calls the regular URL parsing function which
treats it like a possibly invalid scheme.
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: Sven Strickroth <email@cs-ware.de>
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Ignore missing 'safe.directory' config during ownership checks
|
| | |/ / /
| |/| | | |
|
|/ / / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
It is expensive to compute the sha1 of the entire commit-graph file each
time we open it. Git only does this if it is re-writing the file.
This patch will only verify the checksum when calling the external API
git_commit_graph_open(), which explicitly says it opens and verifies
the commit graph in the documentation.
For internal library calls, we call git_commit_graph_get_file(), which
mmaps the commit-graph file in read-only mode. Therefore it is safe to
skip the validation check there.
Tests were added to check that the validation works in the happy path,
and prevents us from opening the file when validation fails.
(Note from Derrick Stolee: This patch was applied internally at GitHub
after we recognized the performance impact it had during an upgrade of
libgit2. The original author left the company before we remembered to
send it upstream.)
Signed-off-by: Derrick Stolee <derrickstolee@github.com>
|
|\ \ \ \
| | | | |
| | | | | |
Support non-cmake builds with an in-tree `experimental.h`
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Actually `cl_skip` the sha256 tests when we're not compiled for sha256,
instead of passing them.
|