配置后运行syncgit.bat一直提示you must set one git repo,可是config.php都写好了呀;
<?php
/**
* encodings: 提交日志的编码,比如GBK,可以用逗号连接起来的多个。
* client: Git客户端执行文件的路径,windows下面是git.exe的路径,linux下面比如/usr/bin/git
* repos可以是多个,需要设定某一个库的访问路径。
*
* encodeings: the encoding of the comment,can be a list.
* client: the git client binary path. Unser windows, find the path of git.exe. Under linux, try /usr/bin/git
* Can set multi repos, ervery one should set the path.
*
* 例子:
* $config->git->client = 'D:/Program Files/Git/bin/git.exe'; // c:\git\git.exe
* $config->git->repos['pms']['path'] = 'E:/zentaoGit'; // 'https://gitee.com/njxgznkj/default-warehouse.git'; // c:\repo\pms
* $config->git->repos['pms']['encoding'] = 'utf-8';
*
*/
$config->git = new stdClass();
$config->git->encodings = 'utf-8, gbk';
$config->git->client = 'D:\Program Files\Git\bin\git.exe';
客户端错误!
执行命令:/usr/bin/git --version --quiet 2>&1
错误结果(129): error: unknown option `quiet'
usage: git version []
--build-options also print build options
<?php
/**
* encodings: 提交日志的编码,比如GBK,可以用逗号连接起来的多个。
* client: Git客户端执行文件的路径,windows下面是git.exe的路径,linux下面比如/usr/bin/git
* repos可以是多个,需要设定某一个库的访问路径。
*
* encodeings: the encoding of the comment,can be a list.
* client: the git client binary path. Unser windows, find the path of git.exe. Under linux, try /usr/bin/git
* Can set multi repos, ervery one should set the path.
*
* 例子:
* $config->git->client = 'D:/Program Files/Git/bin/git.exe'; // c:\git\git.exe
* $config->git->repos['pms']['path'] = 'E:/zentaoGit'; // 'https://gitee.com/njxgznkj/default-warehouse.git'; // c:\repo\pms
* $config->git->repos['pms']['encoding'] = 'utf-8';
*
*/
$config->git = new stdClass();
$config->git->encodings = 'utf-8, gbk';
$config->git->client = 'D:\Program Files\Git\bin\git.exe';
$i = 1;
$config->git->repos[$i]['path'] = 'E:\zentaoGit';
执行命令:/usr/bin/git tag 2>&1 错误结果(127): sh: 1: /usr/bin/git: not found