| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Signed-off-by: Paulo Gomes <pjbgf@linux.com>
|
|\
| |
| | |
git: Testing, Fix tests not cleaning temp folders
|
|/
|
|
| |
Signed-off-by: Arieh Schneier <15041913+AriehSchneier@users.noreply.github.com>
|
|\
| |
| | |
git: Add Depth to SubmoduleUpdateOptions
|
| | |
|
|\ \
| | |
| | | |
storage: filesystem, Populate index before use. Fixes #148
|
| | |
| | |
| | |
| | | |
Signed-off-by: Arieh Schneier <15041913+AriehSchneier@users.noreply.github.com>
|
|\ \ \
| |/ /
|/| | |
Add support for custom proxy settings
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Add support for custom HTTP and HTTPS proxies for each session.
The tests require server certificate and a matching private key to be
able to run a TLS server and test HTTPS proxy functionality. The cert
and the key are stored in `plumbing/transport/http/testdata/certs` and
were generated using the following command:
`openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout server.key -out server.crt`
Note: All details were left empty, except for the FQDN for which
example.com was used.
Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
objects
Refactor the in-built http transport to cache the underlying http
transport objects mapped to its specific options for each Git transport
object. This lets us reuse the transport for a specific set of configurations
as recommended. (ref: https://pkg.go.dev/net/http#Transport)
If there are no transport specific options provided, the default
transport is used.
Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
|
| | |
| | |
| | |
| | | |
Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
|
|/ /
| |
| |
| | |
Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
|
|\ \
| | |
| | | |
git: worktree, add check to see if file already checked in. Fixes #718
|
| | |
| | |
| | |
| | | |
Checks if an ignored file was previously checked in. If it was, then the file is not ignored matching native git behavior.
|
|\ \ \
| | | |
| | | | |
git: fix cloning with branch name
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Arieh Schneier <15041913+AriehSchneier@users.noreply.github.com>
|
|\ \ \ \
| |/ / /
|/| | | |
git: Add support to ls-remote with peeled references. Fixes #749
|
|/ / /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
A new PeelingOption field was introduced into ListOptions. The new options
include the default (and backwards compatible) IgnorePeeled. Plus another
two variations which either only returns peeled references (OnlyPeeled), or
append peeled references to the list (AppendPeeled).
The ls-remote example was updated to align with upstream, in which peeled
references are appended to the results by default.
A new ErrEmptyUrls error is now returned when List or ListContext do not
receive a URL to work with, to improve overall execution flow.
Signed-off-by: Paulo Gomes <pjbgf@linux.com>
|
|\ \ \
| | | |
| | | | |
fix: git grep bare repositories
|
| | |/
| |/|
| | |
| | |
| | |
| | | |
Perform grep on `*Repository` instead of `*Worktree`.
Fixes: https://github.com/go-git/go-git/issues/68
|
|\ \ \
| | | |
| | | | |
build: Bump dependencies
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
- github.com/ProtonMail/go-crypto to version 0.0.0-20230417170513-8ee5748c52b5.
- github.com/imdario/mergo to version 0.3.15.
- golang.org/x/crypto to version 0.8.0.
- golang.org/x/net to version 0.9.0.
- golang.org/x/sys to version 0.7.0.
- golang.org/x/text to version 0.9.0.
- github.com/go-git/gcfg to version v1.5.1-0.20230307220236-3a3c6141e376
Signed-off-by: Paulo Gomes <pjbgf@linux.com>
|
|\ \ \ \
| |/ / /
|/| | | |
storage: filesystem/dotgit, Improve load packed-refs
|
| |/ / |
|
|\ \ \
| | | |
| | | | |
git: add mirror clone option
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Clone remote as a mirror. This fetches all remote refs, implies bare
repository, and sets the appropriate configs.
Fixes: https://github.com/go-git/go-git/issues/293
Update options.go
Co-authored-by: Paulo Gomes <paulo.gomes.uk@gmail.com>
Signed-off-by: Ayman Bagabas <ayman.bagabas@gmail.com>
|
|\ \ \
| |/ /
|/| | |
internal: Fix regression in scp-like match
|
| |/
| |
| |
| | |
Signed-off-by: Joseda Rios <josriolop@gmail.com>
|
|\ \
| | |
| | | |
ci: Fix upstream git build for master branch
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Changes upstream broke the compatibility test, which now requires
libcurl installed in order to successfully build.
Additionally, the .git-dist dir was added to the .gitignore file.
Fixes:
https://github.com/go-git/go-git/actions/runs/4670641376/jobs/8270625669
Signed-off-by: Paulo Gomes <pjbgf@linux.com>
|
|\ \ \
| |/ /
|/| | |
*: Add support for initializing SHA256 repositories
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Add a new example on initializing a new repository with object format SHA256.
A new Makefile target was created to run the example to ensure that new changes
won't break SHA256 support going forwards.
Relates to the SHA256 implementation, defined in #706.
Signed-off-by: Paulo Gomes <pjbgf@linux.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The variable length for plumbing.Hash is defined at build time, blocked by
tag sha256.
This approach was a trade-off between keeping backwards compatibility while
making progress towards supporting SHA256 with a small amount of changes.
Relates to the SHA256 implementation, defined in #706.
Signed-off-by: Paulo Gomes <pjbgf@linux.com>
|
| | |
| | |
| | |
| | |
| | |
| | | |
Relates to the SHA256 implementation, defined in #706.
Signed-off-by: Paulo Gomes <pjbgf@linux.com>
|
| | |
| | |
| | |
| | |
| | |
| | | |
Relates to #706.
Signed-off-by: Paulo Gomes <pjbgf@linux.com>
|
|\ \ \
| |_|/
|/| | |
plumbing: resolve non-external delta references
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
In a self-contained pack file delta references might point to base
objects stored later in the file.
In this case we need to replace placeholders for external refs with the
actual base object and update the children references.
Fixes: #484
Co-authored-by: Markus Wolf <mail@markus-wolf.de>
|
|\ \
| |/
|/| |
dotgit: fix a filesystem race in Refs/walkReferencesTree
|
| |
| |
| |
| | |
Signed-off-by: Javi Fontan <jfontan@gmail.com>
|
| |
| |
| |
| |
| |
| |
| | |
Checks that reading references it correctly skips deleted directories
and files.
Signed-off-by: Javi Fontan <jfontan@gmail.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
In walkReferencesTree(), the filesystem is browsed recursively. After a folder
is listed, each child element (directory, file) are inspected.
What can happen is that by the time we get to operate on the child element, it
might have been deleted from the filesystem and we would get a PathError.
In the case of directories there was already a case to avoid bubbling up the error
(we consider that there is no ref there, which is correct), but that was missing
for files. This commit just apply the same logic.
|
|\ \
| | |
| | | |
fix(ssh): unable to pass a custom HostKeyCallback func
|
| |/
| |
| |
| |
| |
| |
| |
| | |
Don't overwrite HostKeyCallback if one is provided.
Fixes: c35b8082c863 ("plumbing: transport/ssh, auto-populate ClientConfig.HostKeyAlgorithms. Fixes #411")
Fixes: https://github.com/go-git/go-git/issues/654
Signed-off-by: Ayman Bagabas <ayman.bagabas@gmail.com>
|
|\ \
| | |
| | | |
ci: Bump GitHub actions, enable go test race detection and stop using developer's GPG keys during test execution
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
After the fix of data races in go-billy (go-git/go-billy/pull/28)
race detection can be enabled in go-git to ensure no new issues
go undetected.
Signed-off-by: Paulo Gomes <pjbgf@linux.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Removes the error messages:
Node.js 12 actions are deprecated.
Signed-off-by: Paulo Gomes <pjbgf@linux.com>
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The TestPullAdd test uses git CLI to perform a commit.
Contributors with signing enabled globally would have their GPG
configuration being used to sign that test commit.
This behaviour was transparent for contributors that do not use
secure keys which requires physical confirmation.
The new behaviour disables GPG signing for that test, which was
not required as part of the test.
Signed-off-by: Paulo Gomes <pjbgf@linux.com>
|
|\ \
| | |
| | | |
*: Fix panic for empty revisions. Fixes #674
|
|/ /
| |
| |
| | |
Signed-off-by: Paulo Gomes <pjbgf@linux.com>
|
|\ \
| | |
| | | |
Bump dependencies
|