- 04 Sep, 2022 1 commit
-
-
zeripath authored
Backport #21011 When migrating add several more important sanity checks: * SHAs must be SHAs * Refs must be valid Refs * URLs must be reasonable Signed-off-by:
Andrew Thornton <art27@cantab.net>
-
- 02 May, 2022 1 commit
-
-
wxiaoguang authored
Go 1.17 and later use modern `//go:build` constraints, the old `// +build:` constraints should be removed.
-
- 01 Apr, 2022 1 commit
-
-
wxiaoguang authored
Follows #19266, #8553, Close #18553, now there are only three `Run..(&RunOpts{})` functions. * before: `stdout, err := RunInDir(path)` * now: `stdout, _, err := RunStdString(&git.RunOpts{Dir:path})`
-
- 06 Feb, 2022 1 commit
-
-
6543 authored
-
- 12 Jan, 2022 1 commit
-
-
6543 authored
* fix npe * rm gitRepo from Tag
-
- 23 Dec, 2021 1 commit
-
-
zeripath authored
Git will and can pack references into packfiles and therefore if you write/read the files directly you will get false results. Instead you should use update-ref and show-ref. To that end I have created three new functions in git/repo_commit.go that will do this correctly. Related #17191 Signed-off-by:
Andrew Thornton <art27@cantab.net>
-
- 16 Dec, 2021 1 commit
-
-
zeripath authored
This PR contains multiple fixes. The most important of which is: * Prevent hang in git cat-file if the repository is not a valid repository Unfortunately it appears that if git cat-file is run in an invalid repository it will hang until stdin is closed. This will result in deadlocked /pulls pages and dangling git cat-file calls if a broken repository is tried to be reviewed or pulls exists for a broken repository. Fix #14734 Fix #9271 Fix #16113 Otherwise there are a few small other fixes included which this PR was initially intending to fix: * Fix panic on partial compares due to missing PullRequestWorkInProgressPrefixes * Fix links on pulls pages due to regression from #17551 - by making most /issues routes match /pulls too - Fix #17983 * Fix links on feeds pages due to another regression from #17551 but also fix issue with syncing tags - Fix #17943 * Add missing locale entries for oauth group claims * Prevent NPEs if ColorFormat is called on nil users, repos or teams.
-
- 30 Nov, 2021 1 commit
-
-
zeripath authored
Make Requests Processes and create process hierarchy. Associate OpenRepository with context. (#17125) This PR registers requests with the process manager and manages hierarchy within the processes. Git repos are then associated with a context, (usually the request's context) - with sub commands using this context as their base context. Signed-off-by:
Andrew Thornton <art27@cantab.net>
-
- 22 Sep, 2021 1 commit
-
-
Eng Zer Jun authored
The io/ioutil package has been deprecated as of Go 1.16, see https://golang.org/doc/go1.16#ioutil . This commit replaces the existing io/ioutil functions with their new definitions in io and os packages. Signed-off-by:
Eng Zer Jun <engzerjun@gmail.com> Co-authored-by:
techknowlogick <techknowlogick@gitea.io>
-
- 24 Aug, 2021 1 commit
-
-
John Olheiser authored
* Add bundle download Signed-off-by:
jolheiser <john.olheiser@gmail.com> * Fix fmt Signed-off-by:
jolheiser <john.olheiser@gmail.com> * Fix build tags Signed-off-by:
jolheiser <john.olheiser@gmail.com> * Download specific commit Signed-off-by:
jolheiser <john.olheiser@gmail.com>
-
- 25 Jun, 2021 1 commit
-
-
6543 authored
remove log() func from gogs times and switch to proper logging Signed-off-by:
Andrew Thornton <art27@cantab.net> Co-authored-by:
Andrew Thornton <art27@cantab.net>
-
- 10 May, 2021 1 commit
-
-
zeripath authored
Use common git cat-file --batch and git cat-file --batch-check to significantly reduce calls to git. Signed-off-by:
Andrew Thornton <art27@cantab.net>
-
- 02 May, 2021 1 commit
-
-
zeripath authored
* Improve performance when there are multiple commits in the last commit cache * read refs directly if we can Signed-off-by:
Andrew Thornton <art27@cantab.net>
-
- 19 Feb, 2021 1 commit
-
-
Lunny Xiao authored
Co-authored-by:
Lauris BH <lauris@nix.lv>
-
- 17 Dec, 2020 1 commit
-
-
zeripath authored
* Move last commit cache back into modules/git Signed-off-by:
Andrew Thornton <art27@cantab.net> * Remove go-git from the interface for last commit cache Signed-off-by:
Andrew Thornton <art27@cantab.net> * move cacheref to last_commit_cache Signed-off-by:
Andrew Thornton <art27@cantab.net> * Remove go-git from routers/private/hook Signed-off-by:
Andrew Thornton <art27@cantab.net> * Move FindLFSFiles to pipeline Signed-off-by:
Andrew Thornton <art27@cantab.net> * Make no-go-git variants Signed-off-by:
Andrew Thornton <art27@cantab.net> * Submodule RefID Signed-off-by:
Andrew Thornton <art27@cantab.net> * fix issue with GetCommitsInfo Signed-off-by:
Andrew Thornton <art27@cantab.net> * fix GetLastCommitForPaths Signed-off-by:
Andrew Thornton <art27@cantab.net> * Improve efficiency Signed-off-by:
Andrew Thornton <art27@cantab.net> * More efficiency Signed-off-by:
Andrew Thornton <art27@cantab.net> * even faster Signed-off-by:
Andrew Thornton <art27@cantab.net> * Reduce duplication * As per @lunny Signed-off-by:
Andrew Thornton <art27@cantab.net> * attempt to fix drone Signed-off-by:
Andrew Thornton <art27@cantab.net> * fix test-tags Signed-off-by:
Andrew Thornton <art27@cantab.net> * default to use no-go-git variants and add gogit build tag Signed-off-by:
Andrew Thornton <art27@cantab.net> * placate lint Signed-off-by:
Andrew Thornton <art27@cantab.net> * as per @6543 Signed-off-by:
Andrew Thornton <art27@cantab.net> Co-authored-by:
6543 <6543@obermui.de> Co-authored-by:
techknowlogick <techknowlogick@gitea.io>
-