-
Suggestion
-
Resolution: Answered
-
None
-
None
-
None
It would be useful to configure certain Git repository options via the Stash UI. These options could be configured on a per-repository level.
Options we might want to support are:
- denyNonFastforwards
- denyDeletes
- is related to
-
BSERV-2507 Add permission to disable branch and tag deletion via git push
- Closed
-
BSERV-2586 Add user permission for allowing/denying non fast forward pushes
- Closed
Note: The options that you mention are either already implemented as hooks or were suggested as hooks: https://extranet.atlassian.com/display/STASH/Hook+Examples
The config settings you suggested are binary and affect the whole repository (i.e. all the branches and tags, even the "internal" ones). Hooks would allow us to implement more fine grained controls (i.e. certain users can force push, others can't -
STASH-2586; same for branch tag deletions) in the future so I wouldn't expose the two settings you mention here. There may be other config settings (now or on the future) we could expose but we should revisit this when it becomes an issue.