neuropoly / gitea

https://gitea.io fork with https://git-annex.branchable.com support
https://gitea.io
MIT License
3 stars 2 forks source link

annex: Auto protect `git-annex` and `synced/*` branches #5

Open kousu opened 2 years ago

kousu commented 2 years ago

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?

Related: https://github.com/neuropoly/gitea/issues/4