diff --git a/bin/init.bat b/bin/init.bat index 6740fb52fa..8dcefe0d36 100644 --- a/bin/init.bat +++ b/bin/init.bat @@ -95,7 +95,8 @@ echo #min hour day month week command. >> %sysCron% echo 0 1 * * * %baseDir%dailyreminder.bat # daily reminder. >> %sysCron% echo 1 1 * * * %baseDir%backup.bat # backup database and file. >> %sysCron% echo 1 23 * * * %baseDir%computeburn.bat # compute burndown chart. >> %sysCron% -echo 1-59/2 * * * * %baseDir%svnrun.bat # sync subversion. >> %sysCron% +echo 1-59/2 * * * * %baseDir%syncsvn.bat # sync subversion. >> %sysCron% +echo 1-59/2 * * * * %baseDir%syncgit.bat # sync git. >> %sysCron% :: return 0 when success. exit /b 0 diff --git a/bin/init.sh b/bin/init.sh index 6414d31b6d..0c00561fee 100755 --- a/bin/init.sh +++ b/bin/init.sh @@ -110,6 +110,7 @@ echo "0 1 * * * $basePath/dailyreminder.sh # dailyreminder." echo "1 1 * * * $basePath/backup.sh # backup database and file." >> $basePath/cron/sys.cron echo "1 23 * * * $basePath/computeburn.sh # compute burndown chart." >> $basePath/cron/sys.cron echo "1-59/2 * * * * $basePath/syncsvn.sh # sync subversion." >> $basePath/cron/sys.cron +echo "1-59/2 * * * * $basePath/syncgit.sh # sync git" >> $basePath/cron/sys.cron cron="$phpcli $basePath/php/crond.php" echo $cron > $basePath/cron.sh echo "cron.sh ok" diff --git a/module/git/config.php b/module/git/config.php index b12b6407bc..17f481acfd 100644 --- a/module/git/config.php +++ b/module/git/config.php @@ -10,12 +10,12 @@ * * 例子: * $config->git->client = '/usr/bin/git'; // c:\git\git.exe - * $config->git->repos['pms']['path'] = '/home/user/repo/pms'; // c:\repo\pms + * $config->git->repos['pms']['path'] = '/home/user/repo/pms'; // c:\repo\pms * */ $config->git = new stdClass(); $config->git->encodings = 'utf-8, gbk'; -$config->git->client = '/usr/bin/git'; +$config->git->client = ''; $i = 1; $config->git->repos[$i]['path'] = '';