summaryrefslogtreecommitdiffstatshomepage
path: root/repository
Commit message (Collapse)AuthorAge
* build(deps)!: upgrade bleve v1.0.14 => v2.5.1 (#1442)sudoforge2025-05-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change upgrades `bleve`, primarily to remove the need for the replace directive on `github.com/willf/bitset`, but this change upgrades further to move past a non-impacting vulnerability to the `bleve/http` package [0] [1], even though we do not use it, even indirectly. Note that even though the GitHub advisory [0] notes that this is patched in `v2.5.0`, all that seems to have happened (see [1]) is that a README was added to the package noting the vulnerabilities. Other CVE databases [2] [3] do not mark this as resolved. Again, however, git-bug DOES NOT USE this package, so it is not really a concern. The cache and indexing format was changed. Index storage gains are _significant_ (at the time of writing, with the git-bug repository, this change reduces the index cache from ~51 MiB to less than 4 MiB). This does not come with a change to bleve's API. We do have a test that validates that the index file exists, however, so this change refactors that to check against the appropriate path. [0]: https://github.com/advisories/GHSA-9w9f-6mg8-jp7w [1]: https://github.com/blevesearch/bleve/commit/1c7509d6a17d36f265c90b4e8f4e3a3182fe79ff [2]: https://nvd.nist.gov/vuln/detail/CVE-2022-31022 [3]: https://pkg.go.dev/vuln/GO-2022-0470 BREAKING-CHANGE: This causes a change to the format of the internal, local cache that git-bug uses. Users should note that older versions of git-bug will be incompatible with this new cache format. If you wish to downgrade to an older version of git-bug, you should first remove the cache by executing `rm -rf .git/git-bug` in a terminal, and then initialize the older version of git-bug to build a compatible version of the cache. Co-authored-by: Michael Muré <battoletre@gmail.com> Change-Id: I9ab436ade9221bfd91b84ebaf47434f1b3d91cd3 Co-authored-by: Michael Muré <battoletre@gmail.com>
* fix(cli): ignore missing sections when removing configuration (#1455)sudoforge2025-05-18
| | | | | | | | | | This change fixes an error typically encountered in the `git-bug-wipe` command, caused by overly zealous implementations of //repository:config.go%ConfigWrite.RemoveAll(). This change refactors these implementations to only attempt to remove sections that exist, and ignore non-existent sections. Closes: #1451 Change-Id: I66e710239915c8601dd70a78ae65eb625e093ef6
* fix: resolve the remote URI using url.*.insteadOf (#1394)sudoforge2025-04-30
| | | | | | | | | | | | | | This change introduces a new method for resolving the URI for a given remote (by name), ensuring that the URI is rewritten following the rules defined in `url.*.insteadOf` configuration. When `go-git@69aefb67315d775bf73df836b1e3ba5a3b321198` lands in a release (and we update go-git to that release), this should be refactored to use `config.URL.InsteadOfs()`, which supports multiple `url.*.insteadOf` configuration blocks instead of the current limitation of always taking the last definition. Closes: #944 Change-Id: Iffd111a1f4c42eff12613dcbd1b0d27df415f5e8
* feat: update references to the git-bug organization (#1249)sudoforge2024-08-24
| | | | | | | | The repository was recently moved to the git-bug organization on github. This change refactors references to the repository to ensure that they use the updated owner URI. Closes: #1243 Change-Id: I799712354c6ba25cdd8b06286275850c52efe6ff
* chore: remove refs to deprecated io/ioutilguoguangwu2024-07-23
| | | | | | | | Signed-off-by: guoguangwu <guoguangwug@gmail.com> chore: remove refs to deprecated io/ioutil Signed-off-by: guoguangwu <guoguangwug@gmail.com>
* Fix some commentsdockercui2024-04-24
| | | | Signed-off-by: dockercui <dockercui@aliyun.com>
* repo: improve support for gitdir indirectionMichael Muré2023-03-04
| | | | | | - add a limited reader to avoid abuse - support recusive indirection (up to depth 10) - check that the pointed to repo does exist
* chore: updated error message when detectGitPath failsAlec Lanter2023-01-23
|
* test: resolve changes for PR #1004, add unit test, fix issue uncovered by ↵Alec Lanter2023-01-23
| | | | unit test
* fix(#971): parse submodule .git files instead of erroringAlec Lanter2023-01-21
| | | | | Altered logic for detecting git directory. Instead of erroring on non-direcctory .git files, now parses the file and returns the linked gitdir.
* repo: don't forget to close a fileMichael Muré2023-01-14
|
* add wipe sub-command that remove local bugs and identitiesKalin Staykov2023-01-11
|
* repo: check error when closing a repo in testsMichael Muré2023-01-11
|
* Merge pull request #936 from MichaelMure/feat/935/disambiguate-config-errorsSteve Moyer2022-12-23
|\ | | | | feat(935): disambiguate config errors
| * fix: remove repeated use of the same fmt.Errorf() callsSteve Moyer2022-11-28
| |
| * feat: wrap ErrMultipleConfigEntry to report duplicate keySteve Moyer2022-11-27
| | | | | | | | References #935.
| * feat: wrap ErrNoConfigEntry to report missing keySteve Moyer2022-11-27
| | | | | | | | Resolves #935.
* | cache: fix some bugs after refactorMichael Muré2022-12-23
| |
* | repository: return specific error on object not found, accept multiple ↵Michael Muré2022-12-21
| | | | | | | | namespace to push/pull
* | repo: proper reduced interface for full-text indexingMichael Muré2022-12-19
|/ | | | | Additionally, remove and concentrate quite a lot of complexity from the cache layer into a "per app" single site where to configure how indexing is done.
* commands: reorg into different packagesMichael Muré2022-11-20
|
* gogit: fix incorrect loader handlingMichael Muré2022-11-16
|
* go-git: concurrent loading of clocksMichael Muré2022-11-15
|
* bug: have a type for combined ids, fix ↵Michael Muré2022-08-22
| | | | https://github.com/MichaelMure/git-bug/issues/653
* bug: fix an issue where Id would be used, then changed due to metadataMichael Muré2022-07-31
|
* test(809): do not export function that returns GoGit filesystemSteve Moyer2022-06-22
|
* test: use testing.TB as common interfaceSteve Moyer2022-06-21
|
* test(809): remove remaining calls to InitGoRepo in testsSteve Moyer2022-06-16
| | | | Note that examples still need to shown how a developer would use the library.
* refactor(809): eliminate need to defer CleanupTestRepos()Steve Moyer2022-06-16
|
* refactor: simplify creation of temp dir - after 1.15Steve Moyer2022-05-31
|
* fix: remove only t.Parallel()Steve Moyer2022-05-31
|
* gogit: close index before deleting it on diskMichael Muré2022-05-31
|
* test: clean up temp dir and repo correctlySteve Moyer2022-05-31
|
* test: add verification that localStorage.Root() resolves to the correct ↵Steve Moyer2022-05-26
| | | | absolute filepath
* refactor: use namespace instead of application of applicationNameSteve Moyer2022-05-26
|
* chore: clean-up commented codeSteve Moyer2022-05-25
|
* feat: make local storage configurableSteve Moyer2022-05-25
|
* update keyring and migrate to github.com/ProtonMail/go-cryptoMichael Muré2022-02-15
|
* repo: workaround more go-git concurrency issueMichael Muré2021-04-22
|
* repository: workaround a non thread-safe path in go-gitMichael Muré2021-04-17
| | | | fix https://github.com/MichaelMure/git-bug/issues/497
* cache: many fixes following the dag entity migrationMichael Muré2021-04-08
|
* Merge remote-tracking branch 'origin/master' into dag-entityMichael Muré2021-03-29
|\
| * repo: fix various config issues around case insentivityMichael Muré2021-03-28
| |
| * repo: fix security issue that could lead to arbitrary code executionMichael Muré2021-03-21
| | | | | | | | see https://blog.golang.org/path-security for details
| * commands: minor fixes for the webui open with queryMichael Muré2021-03-07
| | | | | | | | | | | | - go fmt - add a shorthand - fix displayed webUI URL in the terminal
* | entity: add support for storing filesMichael Muré2021-03-21
| |
* | entity: implement removeMichael Muré2021-02-14
| |
* | entity: working commit signaturesMichael Muré2021-02-14
| |
* | entity: more testing and bug fixingMichael Muré2021-02-14
| |
* | entity: readAll and more testingMichael Muré2021-02-14
| |