The git-annex and synced/* branches should never be erased or force-pushed. Only sadness lies that way.
Tweak gitea so it deploys a default branch protection rule to all repos protecting them.
Perhaps, only display this rule once the branch actually exists, though, so that repos on the server not using git-annex are unaffected. And maybe only also if git config annex.uuid is set in the repo to really rule out false positives?
The
git-annex
andsynced/*
branches should never be erased or force-pushed. Only sadness lies that way.Tweak gitea so it deploys a default branch protection rule to all repos protecting them.
Perhaps, only display this rule once the branch actually exists, though, so that repos on the server not using git-annex are unaffected. And maybe only also if
git config annex.uuid
is set in the repo to really rule out false positives?Related: https://github.com/neuropoly/gitea/issues/4