#3222 Add a hook that disables creating new branches by pushing
Merged by pingou. Opened by bkabrda.
bkabrda/pagure no-new-branches-hook  into  master

Download 3222.patch

This is a very simple hook that, when active on a repo, will refuse any push that creates a new branch.

This is probably never going to be a backslash, but if it does, it will get mangled: https://github.com/koalaman/shellcheck/wiki/SC2162
Otherwise shellcheck only complains about new being unused, which is fine.

Thanks, I'll use read -r anyway just to be sure.

rebased onto e82c6dba7ddc824ac637da5ea772dbad9766336b

Indentation looks odd, mind adjusting it?

Let's add tests here as well to ensure it's properly installed/removed as we have for the other hooks.

Otherwise looks good :)

rebased onto 82d8704485a05591bdb5e22adff4b0aab0d8a267

Indentation is fixed, this should be ok to be merged.

rebased onto bd4ab2188c4c65e11b353e4db57437d2634e6cd9

rebased onto 5afad495ece7602056594e42647b55d0bd395508

Pull-Request has been merged by pingou

Metadata