cvs: SVNROOT / post-commit pre-commit start-commit
[email protected] ("Gwynne Raskind") Sat, 20 Dec 2008 02:52:45 -0000
| Newsgroups | svn.migration |
|---|---|
| Message-ID | <cvsgwynne1229741565@cvsserver> |
gwynne Sat Dec 20 02:52:45 2008 UTC
Modified files:
/SVNROOT post-commit pre-commit start-commit
Log:
set a path, use require instead of require_once, specify a full path
http://cvs.php.net/viewvc.cgi/SVNROOT/post-commit?r1=1.3&r2=1.4&diff_format=u
Index: SVNROOT/post-commit
diff -u SVNROOT/post-commit:1.3 SVNROOT/post-commit:1.4
--- SVNROOT/post-commit:1.3 Fri Dec 19 22:40:16 2008
+++ SVNROOT/post-commit Sat Dec 20 02:52:45 2008
@@ -5,10 +5,11 @@
// Settings
error_reporting(E_ALL | E_STRICT);
date_default_timezone_set('UTC');
+putenv("PATH=/usr/local/bin");
// -----------------------------------------------------------------------------------------------------------------------------
// Constants
-$version = substr('$Revision: 1.3 $', strlen('$Revision: '), -2);
+$version = substr('$Revision: 1.4 $', strlen('$Revision: '), -2);
// -----------------------------------------------------------------------------------------------------------------------------
// Version check
@@ -45,7 +46,7 @@
// -----------------------------------------------------------------------------------------------------------------------------
// Call e-mailer script
-require_once 'commit-email.php';
+require dirname(__FILE__) . 'commit-email.php';
// -----------------------------------------------------------------------------------------------------------------------------
// Check for a SVNROOT commit
http://cvs.php.net/viewvc.cgi/SVNROOT/pre-commit?r1=1.3&r2=1.4&diff_format=u
Index: SVNROOT/pre-commit
diff -u SVNROOT/pre-commit:1.3 SVNROOT/pre-commit:1.4
--- SVNROOT/pre-commit:1.3 Fri Dec 19 22:40:16 2008
+++ SVNROOT/pre-commit Sat Dec 20 02:52:45 2008
@@ -5,10 +5,11 @@
// Settings
error_reporting(E_ALL | E_STRICT);
date_default_timezone_set('UTC');
+putenv("PATH=/usr/local/bin");
// -----------------------------------------------------------------------------------------------------------------------------
// Constants
-$version = substr('$Revision: 1.3 $', strlen('$Revision: '), -2);
+$version = substr('$Revision: 1.4 $', strlen('$Revision: '), -2);
// -----------------------------------------------------------------------------------------------------------------------------
// Version check
http://cvs.php.net/viewvc.cgi/SVNROOT/start-commit?r1=1.2&r2=1.3&diff_format=u
Index: SVNROOT/start-commit
diff -u SVNROOT/start-commit:1.2 SVNROOT/start-commit:1.3
--- SVNROOT/start-commit:1.2 Fri Dec 19 22:40:16 2008
+++ SVNROOT/start-commit Sat Dec 20 02:52:45 2008
@@ -5,10 +5,11 @@
// Settings
error_reporting(E_ALL | E_STRICT);
date_default_timezone_set('UTC');
+putenv("PATH=/usr/local/bin");
// -----------------------------------------------------------------------------------------------------------------------------
// Constants
-$version = substr('$Revision: 1.2 $', strlen('$Revision: '), -2);
+$version = substr('$Revision: 1.3 $', strlen('$Revision: '), -2);
// -----------------------------------------------------------------------------------------------------------------------------
// Version check