aboutsummaryrefslogtreecommitdiffstats
path: root/tests/integration/git_push_test.go
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused param `doer` (#34545)Philip Peterson2025-06-181-1/+1
|
* Run `gopls modernize` on codebase (#34751)silverwind2025-06-181-6/+6
| | | | Recent modernize fixes: https://github.com/golang/tools/commits/master/gopls/internal/analysis/modernize
* Enable testifylint rules (#34075)TheFox0x72025-03-311-1/+1
| | | | enable testifylint rules disabled in: https://github.com/go-gitea/gitea/pull/34054
* Remove context from git struct (#33793)TheFox0x72025-03-041-2/+2
| | | | Argument is moved from struct init in command run, which lets us remove context from struct.
* Enable tenv and testifylint rules (#32852)TheFox0x72024-12-151-2/+1
| | | | Enables tenv and testifylint linters closes: https://github.com/go-gitea/gitea/issues/32842
* Prevent update pull refs manually and will not affect other refs update (#31931)Lunny Xiao2024-09-021-0/+22
| | | | | | | | | | All refs under `refs/pull` should only be changed from Gitea inside but not by pushing from outside of Gitea. This PR will prevent the pull refs update but allow other refs to be updated on the same pushing with `--mirror` operations. The main changes are to add checks on `update` hook but not `pre-receive` because `update` will be invoked by every ref but `pre-receive` will revert all changes once one ref update fails.
* Fix push multiple branches error with tests (#31151)Lunny Xiao2024-05-291-0/+35
|
* Performance optimization for git push (#30104)Lunny Xiao2024-04-091-0/+11
| | | | | Agit returned result should be from `ProcReceive` hook but not `PostReceive` hook. Then for all non-agit pull requests, it will not check the pull requests for every pushing `refs/pull/%d/head`.
* Restore deleted branches when syncing (#29898)Jason Song2024-03-201-0/+17
| | | | | | | | | | | Regression of #29493. If a branch has been deleted, repushing it won't restore it. Lunny may have noticed that, but I didn't delve into the comment then overlooked it: https://github.com/go-gitea/gitea/pull/29493#discussion_r1509046867 The additional comments added are to explain the issue I found during testing, which are unrelated to the fixes.
* Sync branches to DB immediately when handle git hook calling (#29493)Jason Song2024-03-061-0/+131
Unlike other async processing in the queue, we should sync branches to the DB immediately when handling git hook calling. If it fails, users can see the error message in the output of the git command. It can avoid potential inconsistency issues, and help #29494. --------- Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>