aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* plumbing: blame, Complete rewrite. Fixes #603Arieh Schneier2023-07-067-893/+647
| | | | Signed-off-by: Arieh Schneier <15041913+AriehSchneier@users.noreply.github.com>
* Merge pull request #792 from AriehSchneier/empty-fetch-with-shallowsPaulo Gomes2023-07-023-4/+11
|\ | | | | plumbing: packp, A request is not empty if it contains shallows. Fixes #328
| * plumbing: packp, A request is not empty if it contains shallows. Fixes #328Arieh Schneier2023-07-023-4/+11
|/ | | | Signed-off-by: Arieh Schneier <15041913+AriehSchneier@users.noreply.github.com>
* Merge pull request #802 from pjbgf/fix-buildPaulo Gomes2023-07-024-4/+27
|\ | | | | plumbing: http, Fix empty repos on Git v2.41+
| * plumbing: http, Fix empty repos on Git v2.41+Paulo Gomes2023-07-014-4/+27
| | | | | | | | | | | | | | | | | | | | | | | | Git v2.41.0 comes with [changes](https://github.com/git/git/commit/933e3a4ee205353d8f093d5dfcd226fa432c4e58) that breaks go-git's assumptions for when detecting empty repositories. Go-git expects a flush instead of the first hash line. Instead, a dummy capabilities^{} with zero-id is returned. The change aims to allow for identifying the object format even when cloning empty repositories. Signed-off-by: Paulo Gomes <pjbgf@linux.com>
* | Merge pull request #357 from pascal-hofmann/patch-1Paulo Gomes2023-07-011-3/+0
|\ \ | | | | | | _examples: Remove wrong comment
| * | _examples: Remove wrong commentPascal Hofmann2021-07-301-3/+0
| | |
* | | Merge pull request #702 from ThinkChaos/perf/add-directory-minor-speedupPaulo Gomes2023-07-012-21/+95
|\ \ \ | |_|/ |/| | perf: minor speedup for `doAddDirectory`
| * | squash: replace `if` with `||`ThinkChaos2023-05-311-3/+1
| | |
| * | worktree: minor speedup for doAddDirectoryThinkChaos2023-05-302-18/+94
| | |
* | | Merge pull request #765 from matejrisek/feature/shallow-submodules-optionPaulo Gomes2023-06-073-1/+47
|\ \ \ | | | | | | | | git: add a clone option to allow for shallow cloning of submodules
| * | | git: add a clone option to allow for shallow cloning of submodulesmatej.risek2023-06-053-1/+47
| | | | | | | | | | | | | | | | | | | | This option matches the git clone option --shallow-submodules. https://git-scm.com/docs/git-clone#Documentation/git-clone.txt---no-shallow-submodules
* | | | Merge pull request #756 from matejrisek/fix/scp-style-submodule-urlPaulo Gomes2023-06-052-7/+33
|\ \ \ \ | | | | | | | | | | git: fix the issue with submodules having the SCP style URL fail due to the wrong URL parsing
| * | | | git: fix the issue with submodules having the SCP style URL fail due to the ↵matej.risek2023-06-052-7/+33
| |/ / / | | | | | | | | | | | | wrong URL parsing
* | | | Merge pull request #784 from pjbgf/secPaulo Gomes2023-06-051-0/+38
|\ \ \ \ | | | | | | | | | | Add SECURITY.md
| * | | | *: Add SECURITY.md. Fixes: #527 #543Paulo Gomes2023-06-041-0/+38
| | |/ / | |/| | | | | | | | | | Signed-off-by: Paulo Gomes <pjbgf@linux.com>
* | | | Merge pull request #785 from AriehSchneier/gitignore-relative-any-userPaulo Gomes2023-06-042-11/+57
|\ \ \ \ | | | | | | | | | | plumbing: gitignore, Allow gitconfig to contain a gitignore relative to any user home. Fixes #578
| * | | | plumbing: gitignore, Allow gitconfig to contain a gitignore relative to any ↵Arieh Schneier2023-06-052-11/+57
|/ / / / | | | | | | | | | | | | | | | | | | | | user home. Fixes #578 Signed-off-by: Arieh Schneier <15041913+AriehSchneier@users.noreply.github.com>
* | | | Merge pull request #758 from AriehSchneier/head-not-masterPaulo Gomes2023-06-042-7/+43
|\ \ \ \ | |/ / / |/| | | git: Clone HEAD should not force master. Fixes #363
| * | | git: Clone HEAD should not force master. Fixes #363Arieh Schneier2023-06-042-7/+43
|/ / / | | | | | | | | | Signed-off-by: Arieh Schneier <15041913+AriehSchneier@users.noreply.github.com>
* | | 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