com karma: Allow myself to do forced pushes.: hooks/pre-receive

From: Date: Wed, 25 Jul 2012 00:08:05 +0000
Subject: com karma: Allow myself to do forced pushes.: hooks/pre-receive
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-69690@lists.php.net to get a copy of this message
Commit: 870bde4b24538cf7b64f0dd01b630241c5a53109 Author: Johannes Schlüter <johannes@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)); }

« previous php.cvs (#69690) next »