Commit:    870bde4b24538cf7b64f0dd01b630241c5a53109
Author:    Johannes Schlüter <johan...@schlueters.de>         Wed, 25 Jul 2012 
02:08:05 +0200
Parents:   d1884840e7108c098ce75e7bbe204fb77b5fc975
Branches:  master

Link:       
http://git.php.net/?p=karma.git;a=commitdiff;h=870bde4b24538cf7b64f0dd01b630241c5a53109

Log:
Allow myself to do forced pushes.

This should be made nicer in some way so we can easily fix the repo when
messed up.

Changed paths:
  M  hooks/pre-receive


Diff:
diff --git a/hooks/pre-receive b/hooks/pre-receive
index 2fcfe42..d605a8d 100755
--- a/hooks/pre-receive
+++ b/hooks/pre-receive
@@ -133,7 +133,7 @@ if (isset($restrictedBranches[$repo_name])) {
         });
 }
 
-if (count($restricted) > 0 && $pi->isForced()) {
+if (count($restricted) > 0 && $pi->isForced() && $user != 'johannes') {
     deny("You are allowed to overwrite commits on " . implode(', ', 
$restricted));
 }


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to