aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* worktree: minor speedup for doAddDirectoryThinkChaos2023-05-302-18/+94
|
* Merge pull request #781 from AriehSchneier/fix-gitignorePaulo Gomes2023-05-292-6/+40
|\ | | | | plumbing: gitignore, fix incorrect parsing. Fixes #500
| * plumbing: gitignore, fix incorrect parsing. Fixes #500Arieh Schneier2023-05-292-6/+40
| | | | | | | | Signed-off-by: Arieh Schneier <15041913+AriehSchneier@users.noreply.github.com>
* | Merge pull request #763 from AriehSchneier/dont-add-want-if-havePaulo Gomes2023-05-291-4/+8
|\ \ | |/ |/| git: don't add to wants if exists, shallow and depth 1
| * git: don't add to wants if exists, shallow and depth 1Arieh Schneier2023-05-251-4/+8
| | | | | | | | Signed-off-by: Arieh Schneier <15041913+AriehSchneier@users.noreply.github.com>
* | Merge pull request #772 from Jleagle/masterPaulo Gomes2023-05-252-0/+47
|\ \ | | | | | | Replace user dir in path
| * | plumbing: gitignore, TypoJleagle2023-05-251-1/+1
| | | | | | | | | Co-authored-by: Paulo Gomes <paulo.gomes.uk@gmail.com>
| * | plumbing: gitignore, Allow gitconfig to contain a gitignore relative to user ↵Jleagle2023-05-252-0/+47
|/ / | | | | | | home
* | Merge pull request #762 from AriehSchneier/fetch-non-qualifiedPaulo Gomes2023-05-254-57/+130
|\ \ | |/ |/| git: enable fetch with unqualified references
| * git: enable fetch with unqualified referencesArieh Schneier2023-05-254-57/+130
|/ | | | Signed-off-by: Arieh Schneier <15041913+AriehSchneier@users.noreply.github.com>
* Merge pull request #778 from AriehSchneier/fix-fetch-after-shallow-v2Paulo Gomes2023-05-243-44/+116
|\ | | | | git: Fix fetching after shallow clone. Fixes #305
| * git: Fix fetching after shallow clone. Fixes #305Arieh Schneier2023-05-243-44/+116
|/ | | | Signed-off-by: Arieh Schneier <15041913+AriehSchneier@users.noreply.github.com>
* Merge pull request #775 from pjbgf/codeqlv5.7.0Paulo Gomes2023-05-233-16/+60
|\ | | | | *: Add Codeql workflow and bump dependencies
| * *: Bump dependenciesPaulo Gomes2023-05-232-16/+16
| | | | | | | | | | | | | | | | | | | | - github.com/ProtonMail/go-crypto to 0.0.0-20230518184743-7afd39499903. - github.com/skeema/knownhosts to 1.1.1. - golang.org/x/crypto to 0.9.0. - golang.org/x/net to 0.10.0. - golang.org/x/sys to 0.8.0. Signed-off-by: Paulo Gomes <pjbgf@linux.com>
| * *: Add CodeQL workflowPaulo Gomes2023-05-231-0/+44
| | | | | | | | Signed-off-by: Paulo Gomes <pjbgf@linux.com>
* | Merge pull request #764 from techknowlogick/init-optionsPaulo Gomes2023-05-233-1/+66
|\ \ | |/ |/| git: Allow Initial Branch to be configurable
| * git: Allow Initial Branch to be configurabletechknowlogick2023-05-213-1/+66
| |
* | Merge pull request #776 from ↵Paulo Gomes2023-05-232-2/+3
|\ \ | | | | | | | | | | | | go-git/dependabot/go_modules/github.com/cloudflare/circl-1.3.3 build(deps): bump github.com/cloudflare/circl from 1.1.0 to 1.3.3
| * | build(deps): bump github.com/cloudflare/circl from 1.1.0 to 1.3.3dependabot[bot]2023-05-212-2/+3
|/ / | | | | | | | | | | | | | | | | | | | | | | | | Bumps [github.com/cloudflare/circl](https://github.com/cloudflare/circl) from 1.1.0 to 1.3.3. - [Release notes](https://github.com/cloudflare/circl/releases) - [Commits](https://github.com/cloudflare/circl/compare/v1.1.0...v1.3.3) --- updated-dependencies: - dependency-name: github.com/cloudflare/circl dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>
* | Merge pull request #774 from pjbgf/go-bumpPaulo Gomes2023-05-212-13/+11
|\ \ | | | | | | *: Bump Go version to 1.18 on go.mod
| * | *: Bump Go version to 1.18 on go.modPaulo Gomes2023-05-212-13/+11
|/ / | | | | | | Signed-off-by: Paulo Gomes <pjbgf@linux.com>
* | Merge pull request #753 from andrewpollock/add_list_timeoutPaulo Gomes2023-05-202-1/+11
|\ \ | | | | | | git: remote, add support for a configurable timeout.
| * | git: remote, add support for a configurable timeout.Andrew Pollock2023-05-122-1/+11
| | | | | | | | | | | | | | | | | | | | | The previous hard-coded 10 second value is too short for listing large repositories like https://gitlab.com/gitlab-org/gitlab Return an error on nonsensical subzero timeout values
* | | Merge pull request #770 from pjbgf/small-fixesPaulo Gomes2023-05-1554-172/+129
|\ \ \ | |/ / |/| | *: Small fixes across the codebase
| * | *: Add missing error checksPaulo Gomes2023-05-112-14/+24
| | | | | | | | | | | | | | | | | | | | | | | | Some areas of the code base were missing error checks, without them it may be harder to troubleshoot unexpected behaviours. Signed-off-by: Paulo Gomes <pjbgf@linux.com>
| * | *: Replace fmt.Sprintf with net.JoinHostPortPaulo Gomes2023-05-112-4/+5
| | | | | | | | | | | | Signed-off-by: Paulo Gomes <pjbgf@linux.com>
| * | *: Remove use of deprecated io/utilPaulo Gomes2023-05-1147-136/+96
| | | | | | | | | | | | Signed-off-by: Paulo Gomes <pjbgf@linux.com>
| * | *: Remove redudant err nil checksPaulo Gomes2023-05-114-18/+4
|/ / | | | | | | Signed-off-by: Paulo Gomes <pjbgf@linux.com>
* | Merge pull request #769 from AriehSchneier/fix-test-cleanPaulo Gomes2023-05-113-27/+31
|\ \ | |/ |/| git: Testing, Fix tests not cleaning temp folders
| * git: Testing, Fix tests not cleaning temp foldersArieh Schneier2023-05-113-27/+31
|/ | | | Signed-off-by: Arieh Schneier <15041913+AriehSchneier@users.noreply.github.com>
* Merge pull request #754 from matejrisek/feature/submodule-clone-depthPaulo Gomes2023-05-043-1/+34
|\ | | | | git: Add Depth to SubmoduleUpdateOptions
| * git: Add Depth to SubmoduleUpdateOptionsmatej.risek2023-05-043-1/+34
| |
* | Merge pull request #722 from AriehSchneier/populate-indexPaulo Gomes2023-05-042-0/+25
|\ \ | | | | | | storage: filesystem, Populate index before use. Fixes #148
| * | storage: filesystem, Populate index before use. Fixes #148Arieh Schneier2023-05-042-0/+25
| | | | | | | | | | | | Signed-off-by: Arieh Schneier <15041913+AriehSchneier@users.noreply.github.com>
* | | Merge pull request #744 from aryan9600/proxy-optionsPaulo Gomes2023-05-0422-68/+883
|\ \ \ | |/ / |/| | Add support for custom proxy settings
| * | plumbing: transport/http, add support for custom proxy URLsSanskar Jaiswal2023-05-049-1/+313
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | plumbing: transport/http, refactor transport to cache underlying transport ↵Sanskar Jaiswal2023-05-048-45/+233
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | plumbing: transport/ssh, add support for custom proxy URLsSanskar Jaiswal2023-05-045-14/+287
| | | | | | | | | | | | Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
| * | plumbing/transport: add ProxyOptions to specify proxy detailsSanskar Jaiswal2023-05-044-9/+51
|/ / | | | | | | Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
* | Merge pull request #719 from cbbm142/masterPaulo Gomes2023-05-032-1/+48
|\ \ | | | | | | git: worktree, add check to see if file already checked in. Fixes #718
| * | Worktree: Status, add check to see if file already checked in [Fixes 718]John Pastore2023-05-012-1/+48
| | | | | | | | | | | | Checks if an ignored file was previously checked in. If it was, then the file is not ignored matching native git behavior.
* | | Merge pull request #755 from AriehSchneier/fix-clone-branchPaulo Gomes2023-05-032-3/+23
|\ \ \ | | | | | | | | git: fix cloning with branch name
| * | | git: fix cloning with branch nameArieh Schneier2023-05-032-3/+23
| | | | | | | | | | | | | | | | Signed-off-by: Arieh Schneier <15041913+AriehSchneier@users.noreply.github.com>
* | | | Merge pull request #750 from pjbgf/peelPaulo Gomes2023-05-034-8/+92
|\ \ \ \ | |/ / / |/| | | git: Add support to ls-remote with peeled references. Fixes #749
| * | | git: Add support to ls-remote with peeled references. Fixes #749Paulo Gomes2023-05-034-8/+92
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | Merge pull request #728 from aymanbagabas/grep-barePaulo Gomes2023-04-263-9/+101
|\ \ \ | | | | | | | | fix: git grep bare repositories
| * | | fix: git grep bare repositoriesAyman Bagabas2023-04-263-9/+101
| | |/ | |/| | | | | | | | | | | | | Perform grep on `*Repository` instead of `*Worktree`. Fixes: https://github.com/go-git/go-git/issues/68
* | | Merge pull request #748 from pjbgf/bump-ciPaulo Gomes2023-04-262-24/+33
|\ \ \ | | | | | | | | build: Bump dependencies
| * | | build: Bump dependencies. Fixes #667Paulo Gomes2023-04-232-24/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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>
* | | | Merge pull request #743 from fcharlie/improve-packed-refsPaulo Gomes2023-04-262-43/+39
|\ \ \ \ | |/ / / |/| | | storage: filesystem/dotgit, Improve load packed-refs