Files
gitocean/models/fixtures
John MoonandOtto 09f7dbecda fix: Remove "create branch" button on mirrored repos (#7640)
Currently, if you have a mirrored repo, the button on the "branches"
page to create a new branch is available to be pressed. Once you name
your new branch and click submit, you get a 404 page that doesn't explain
what went wrong.

As new branch creation is not supported on mirrored repos, let's just
take that button away if the repo is a mirror. This is already done for
archived repos, so we just need to add another check.

Fixes #7639.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7640
Reviewed-by: Otto <otto@codeberg.org>
Co-authored-by: John Moon <john.moon@vts-i.com>
Co-committed-by: John Moon <john.moon@vts-i.com>
2025-05-14 23:26:12 +00:00
..
2024-03-24 07:12:31 +01:00
2022-09-20 15:59:20 +08:00
2024-05-24 10:31:41 +02:00
2024-02-05 15:56:45 +01:00
2017-01-09 21:49:51 +01:00
2020-08-16 23:07:38 -04:00
2017-01-25 18:37:10 +08:00
2019-12-11 23:23:05 -05:00
2024-02-05 15:56:45 +01:00