| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When the call to the agent fails, we must retrieve the error message
just after the function call, as other calls may overwrite it.
As the agent authentication is the only one which has a teardown and
there does not seem to be a way to get the error message from a stored
error number, this tries to introduce some small changes to store the
error from the agent.
Clearing the error at the beginning of the loop lets us know whether the
agent has already set the libgit2 error message and we should skip it,
or if we should set it.
|
|\
| |
| | |
Clean up transport lookup
|
| |
| |
| |
| |
| | |
Instead of using ifdefs to run the tests, use them to set when we expect
to support a particular scheme and always have the tests in the code.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
It does the same as git_remote_supported_url() but has a name which
implies we'd check the URL for correctness while we're simply looking at
the scheme and looking it up in our lists.
While here, fix up the tests so we check all the combination of what's
supported.
|
| |
| |
| |
| |
| |
| |
| | |
The previous commit makes it harder to figure out if the library was
built with support for a particular transport. Roll back some of the
changes and remove ssh:// and https:// from the list if we're being
built without support for them.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Even when built without a SSH support, we know about this transport. It
is implemented, but the current code makes us return an error message
saying it's not.
This is a leftover from the initial implementation of the transports
when there were in fact transports we knew about but were not
implemented.
Instead, let the SSH transport itself say it cannot run, the same as we
do for HTTPS.
|
|\ \
| | |
| | | |
Teach repository to use relative paths for git symbolic links
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Teach git_repository_init_ext to use relative paths for the gitlink
to the work directory. This is used when creating a sub repository
where the sub repository resides in the parent repository's
.git directory.
|
| | | |
|
|\ \ \
| |/ /
|/| | |
Several CppCat warnings fixed
|
| | | |
|
|\ \ \
| | | |
| | | | |
.editorconfig added to repository
|
| |/ / |
|
|\ \ \
| |/ /
|/| | |
Skip SSH clone tests if libgit2 not built with GIT_SSH defined
|
| | | |
|
|\ \ \
| |_|/
|/| | |
Fix warning
|
| |/ |
|
|\ \
| | |
| | | |
MSVC does not support zero size array
|
|/ / |
|
|\ \
| |/
|/| |
merge: expose multiple merge bases
|
| |
| |
| |
| |
| |
| |
| |
| | |
We always calculate multiple merge bases, but up to now we had only
exposed the "best" merge base.
Introduce git_oidarray which analogously to git_strarray lets us return
multiple ids.
|
|\ \
| | |
| | | |
Fix ahead-behind results
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
When we see PARENT1, it means there is a local commit and thus we are
ahead. Likewise, seeing PARENT2 means that the upstream branch has a
commit and we are one more behind.
The logic is currently reversed. Correct it.
This fixes #2501.
|
| | |
| | |
| | |
| | |
| | | |
The logic was reversed. I have checked manually each pair with git and
adjusted the expectation to what git status prints.
|
|\ \ \
| | | |
| | | | |
winhttp: Prevent swallowing of url parsing error
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
Set timeout on remote (Add timeout for WinHttpReceiveResponse #2147)
|
| | | | |
| | | | |
| | | | |
| | | | | |
Connection timeout set to 1 minute. Read/Write timeout remains set to infinite #2147
|
| | | | | |
|
|\ \ \ \ \
| |_|/ / /
|/| | | | |
Allow to override default ssh transport_cb - in order to allow third party ssh transports
|
| | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: Sven Strickroth <email@cs-ware.de>
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
W/o this patch it is not possible to have a third party ssh transport_cb if GIT_SSH is disabled or a third party transport_cb which has a higher priority than the default one.
Signed-off-by: Sven Strickroth <email@cs-ware.de>
|
| | | | | |
|
|\ \ \ \ \ |
|
| | | | | | |
|
| |\ \ \ \ \
| |/ / / / /
|/| | | | | |
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Refactor git_cache to use an rwlock
|
|/ / / / / /
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
This significantly reduces contention when many threads are trying to
read from the cache simultaneously.
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Fix bugs with negative ignores inside an ignored parent directory
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
`git help ignore` has this to say about trailing slashes:
> If the pattern ends with a slash, it is removed for the purpose of
> the following description, but it would only find a match with a
> directory. In other words, foo/ will match a directory foo and
> paths underneath it, but will not match a regular file or a
> symbolic link foo (this is consistent with the way how pathspec
> works in general in Git).
Sure enough, having manually performed the same steps as this test,
`git status` tells us the following:
# On branch master
#
# Initial commit
#
# Changes to be committed:
# (use "git rm --cached <file>..." to unstage)
#
# new file: force.txt
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# ../.gitignore
# child1/
# child2/
i.e. neither child1 nor child2 is ignored.
|
| | | | | | | |
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
When writing 'bin/*' in the rules, this means we ignore very file inside
bin/ individually, but do not ignore the directory itself. Thus the
status listing should list both files under bin/, one untracked and one
ignored.
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
While scanning through a directory hierarchy, this prevents a
positive ignore match on a parent directory from blocking the scan
of a directory when a negative match rule exists for files inside
the directory.
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
add Julia to the language bindings list
|
| | |_|_|_|/ /
| |/| | | | | |
|
|\ \ \ \ \ \ \
| |/ / / / / /
|/| | | | | | |
pack: return the correct final offset
|
|/ / / / / /
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
The callers of git_packfile_unpack() expect the obj_offset argument to
be set to the beginning of the next object. We were mistakenly returning
the the offset of the object's data, which causes the CRC function to
try to use the wrong offset.
Set obj_offset to curpos instead of elem->offset to point to the next
element and bring back expected behaviour.
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
merge base: Correctly raise an error if a non-commit object is passed.
|
| | |_|_|/ /
| |/| | | | |
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Allow mkdir helper to skip parent errors
|