dsp                                      Wed, 18 Jan 2012 14:01:33 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=322447

Log:
Readonly access to web/php-bugs

Changed paths:
    U   SVNROOT/pre-commit

Modified: SVNROOT/pre-commit
===================================================================
--- SVNROOT/pre-commit  2012-01-18 13:54:52 UTC (rev 322446)
+++ SVNROOT/pre-commit  2012-01-18 14:01:33 UTC (rev 322447)
@@ -1,6 +1,7 @@
 #!/usr/local/bin/php
 <?php

+$migrated_repositories = array('systems/', 'web/php-bugs/');
 // 
-----------------------------------------------------------------------------------------------------------------------------
 // Include
 require dirname(__FILE__) . '/hook-common.inc.php';
@@ -35,8 +36,10 @@
         fail("Commits to archived modules are not allowed.\n");
     }

-    if (strncmp($changed_path, "systems/", strlen("systems/")) === 0) {
-        fail("Systems now uses git. http://git.php.net\n";);
+    foreach($migrated_repositories as $reponame) {
+        if (strncmp($changed_path, $reponame, strlen($reponame)) === 0) {
+            fail("This modules now uses git. http://git.php.net\n";);
+        }
     }
 /* Tags checks disabled. Too many special cases, not enough people making this
     mistake to make the extra work worth it.

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

Reply via email to