Displaying 2 results from an estimated 2 matches for "denypush".
2009 Sep 22
1
new git hook to be installed
...server-side git config in very specific ways.
+# To enable this, on the server, you must do something like the following,
+#
+# git config hooks.server.config-changing.valid-commands \
+# 'git config hooks.allowbadwhitespace true
+# git config hooks.allowbadwhitespace false
+# git config hooks.denypush.branch.master master-branch-owner at example.com
+# git config --unset hooks.denypush.branch.master'
+#
+# where the git config variable, hooks.server.config-changing.valid-commands,
+# contains the list of commands that are allowed, one per line.
+#
+# CAUTION: nothing about this hook code enf...
2009 Jun 04
1
FYI, new git "update" script pushed, not yet installed
...[ "$oldrev" = "$zero" -a "$denycreatebranch" = "true" ]; then
+ echo "*** Creating a branch is not allowed in this repository" >&2
+ exit 1
+ fi
+
check_diff=yes
branch=${1##refs/heads/}
deny_push_email=$(git config "hooks.denypush.branch.$branch")
@@ -161,7 +181,7 @@ esac
if [ $check_diff = yes ]; then
allow_bad_whitespace=$(git config --bool hooks.allowbadwhitespace)
if [ "$allow_bad_whitespace" != "true" ]; then
- test "$oldrev" = 0000000000000000000000000000000000000000 \
+ test &...