0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-01-19 05:25:23 +01:00
gitea/services
Lunny Xiao fafd1db19e
Some refactors about GetMergeBase (#36186)
Maybe fix #32018

- Use `gitrepo.GetMergeBase` method instead of other two
implementations.
- Add `FetchRemoteCommit` so that we don't need to add many `remote` to
the git repository to avoid possible git lock conflicts. A lock will
start when invoke the function, it will be invoked when cross-repository
comparing. The head repository will fetch the base repository's base
commit id. In most situations, it should lock the fork repositories so
that it should not become a bottleneck.
- Improve `GetCompareInfo` to remove unnecessarily adding remote.
- Remove unnecessary parameters of `SignMerge`.
2026-01-17 11:22:09 -08:00
..
2026-01-17 17:03:25 +00:00
2025-12-15 11:55:44 -08:00
2025-12-17 01:07:44 +00:00
2025-10-19 00:37:50 +08:00