| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
* adjust path extracted from file: url on Windows
Fixes #415
|
|\
| |
| | |
Fix some lint warning and increase stalebot to 180 days
|
| |
| |
| |
| | |
Signed-off-by: Paulo Gomes <pjbgf@linux.com>
|
|\ \
| | |
| | | |
plumbing: format/packfile, remove duplicate checks in findMatch()
|
| | |
| | |
| | |
| | | |
Co-authored-by: onee-only <kimww0306@gmail.com>
|
| | | |
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
skeema/knownhosts v1.3.0 introduced a HostKeyDB type that extends the HostKeyCallback functionality
to support @cert-authority algorithms.
`known_hosts` files may contain lines with @cert-authority markers to indicate that a line corresponds
to a certificate instead of a key. If a git remote uses cert authorities as the preferred host
identification mechanism, the functionality added in skeema/knownhosts v1.3.0 is needed so that go-git
can interact with this remote.
See https://github.com/skeema/knownhosts/pull/9 for details.
|
|\ \
| | |
| | | |
plumbing: gitignore, Fix loading of ignored .gitignore files.
|
| |/
| |
| |
| |
| |
| |
| | |
Stop loading .gitignore files from ignored directories, as this can
cause files to be included that should not be.
See https://git-scm.com/docs/gitignore#_pattern_format
|
|/
|
|
| |
Signed-off-by: Paulo Gomes <pjbgf@linux.com>
|
|\
| |
| | |
Bumps Go versions and go-billy
|
| |
| |
| |
| | |
Signed-off-by: Paulo Gomes <pjbgf@linux.com>
|
|/ |
|
|
|
|
|
|
|
|
| |
Canonical Git implementation terminates the sideband stream with a
flush. If the demux scanner is not terminated, it can hang the
connection. Returns io.EOF when encountering a flush pkt.
https://github.com/git/git/blob/master/upload-pack.c#L460
|
|
|
| |
* plumbing: protocol/packp, client-side filter capability support
|
| |
|
| |
|
|
|
|
| |
hashes
|
| |
|
|
|
|
|
|
|
|
|
| |
Before this, go-git would prematurely bail out of extensions processing
when an unknown extension was encountered. This had two issues:
1. It did not account for mandatory (lower case header) extensions
2. It did not properly update the calculated hash, leading to an
"invalid checksum" error.
|
|
|
|
|
|
|
|
|
| |
Before this, go-git was relying on the peeked header to not include a valid
4 char string header. While doing this, it did not differentiate between
the errournously read final hash and an unknown extension.
This made it impossible to properly skip unknown optional extensions while
detecting EOF early enough.
|
|\
| |
| | |
Replace short field names with more descriptive ones.
|
| |
| |
| |
| |
| | |
The decision to change the name of these fields came from reading the code
further down in the scope and not being clear what `c.c` means.
|
|\ \
| | |
| | | |
chore: fix some comments
|
| | |
| | |
| | |
| | | |
Signed-off-by: avoidalone <wuguangdong@outlook.com>
|
|\ \ \
| |/ /
|/| | |
plumbing: no panic in printStats function. Fixes #177
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | | |
Fixes #191
|
| | |
| | |
| | |
| | | |
Fixes #1017
|
|/ / |
|
| | |
|
|\ \
| | |
| | | |
plumbing: object, enable renames in getFileStatsFromFilePatches
|
| |/
| |
| |
| |
| | |
Diff has handled renames by default since 2020. This change sets Name
for the renamed file in a manner similar to diffstat.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Check reference names format before creating branches/tags/remotes.
This should probably be in a lower level somewhere in `plumbing`.
Validating the names under `plumbing.NewReference*` is not possible
since these functions don't return errors.
Fixes: https://github.com/go-git/go-git/issues/929
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Error when encountering an error-line
See https://git-scm.com/docs/pack-protocol
Update plumbing/format/pktline/error.go
Co-authored-by: Paulo Gomes <paulo.gomes.uk@gmail.com>
Update plumbing/format/pktline/error.go
Co-authored-by: Paulo Gomes <paulo.gomes.uk@gmail.com>
feat: format newline
|
|/
|
|
|
|
| |
This the request used for the git transport protocol
feat: nil writer
|
|
|
|
|
|
|
|
|
| |
When running the tests in an install in which git daemon is not installed
(e.g. openSUSE), all the git transport tests will fail with a connection
refused error. This was due the git server not being running in the first
place. The tests will now fail with 'git daemon cannot be found'.
Signed-off-by: Paulo Gomes <pjbgf@linux.com>
|
|\
| |
| | |
plumbing: fix empty uploadpack request error
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
If we have all what we asked for, finish the session and handle error.
This is equivalent of git "Already up to date." message.
Fixes: https://github.com/go-git/go-git/issues/328
Fixes: https://github.com/go-git/go-git/issues/638
Fixes: https://github.com/go-git/go-git/issues/157
|
|/
|
|
|
|
|
| |
Without exposing `trace`, we can't set a target to enable tracing from
out of go-git.
Fixes: https://github.com/go-git/go-git/pull/916
|
| |
|
|
|
|
| |
ioutil.Pipe literally calls io.Pipe.
|
| |
|
|
|
|
|
|
| |
The changes aim to simplify the code and reduce duplication.
Signed-off-by: Paulo Gomes <pjbgf@linux.com>
|