Files
gitocean/modules/git
GustedandGusted 5b77ddb050 feat: Use receive.hideRefs (#10015)
In forgejo/forgejo!2834 and forgejo/forgejo!5307 it was made so it's no longer possible to modify and delete internal reference, not having this restriction lead to broken pull requests when people used something like `git push --mirror`. However it now still leads to problem with that command as the git client tries to delete such references. We can solve this by using git's `receive.hideRefs` to make this ref read-only and avoid advertising it when someone does `git push --mirror`.

Resolves forgejo/forgejo#9942

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/10015
Reviewed-by: Mathieu Fenniak <mfenniak@noreply.codeberg.org>
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-committed-by: Gusted <postmaster@gusted.xyz>
2025-11-10 14:36:15 +01:00
..
2025-03-27 19:40:14 +00:00
2025-03-27 19:40:14 +00:00
2025-11-10 14:36:15 +01:00
2025-11-10 14:36:15 +01:00
2025-03-27 19:40:14 +00:00
2025-11-06 13:23:35 +01:00
2025-11-06 13:23:35 +01:00
2025-01-19 09:42:57 +01:00
2025-03-27 19:40:14 +00:00
2025-03-27 19:40:14 +00:00
2024-08-12 19:11:09 +02:00
2025-01-31 10:43:29 +01:00

Git Module

This module is merged from https://github.com/go-gitea/git which is a Go module to access Git through shell commands. Now it's a part of gitea's main repository for easier pull request.