forgejo/services/repository
zeripath 3c531d3957
When updating by rebase we need to set the environment for head repo (#22535) (#22536)
Backport #22535

The update by rebase code reuses the merge code but shortcircuits and
pushes back up to the head. However, it doesn't set the correct pushing
environment - and just uses the same environment as the base repo. This
leads to the push update failing and thence the PR becomes out-of-sync
with the head.

This PR fixes this and adjusts the trace logging elsewhere to help make
this clearer.

Fix #18802

Signed-off-by: Andrew Thornton <art27@cantab.net>

Signed-off-by: Andrew Thornton <art27@cantab.net>
2023-01-19 17:31:20 -05:00
..
archiver
files Use complete SHA to create and query commit status (#22244) (#22257) 2022-12-28 11:03:21 +01:00
adopt.go Do not list active repositories as unadopted (#22034) (#22166) 2022-12-19 12:48:38 +00:00
adopt_test.go Fix repository adoption on Windows (#21646) (#21650) 2022-11-01 22:32:03 +00:00
avatar.go
avatar_test.go
branch.go
cache.go
check.go Continue GCing other repos on error in one repo (#22422) (#22425) 2023-01-13 15:29:16 -06:00
fork.go
fork_test.go
hooks.go
main_test.go
push.go When updating by rebase we need to set the environment for head repo (#22535) (#22536) 2023-01-19 17:31:20 -05:00
repository.go
repository_test.go
review.go
review_test.go
template.go
transfer.go
transfer_test.go