Home  >  Article  >  Backend Development  >  关于开源中国 git Push 钩子的问题

关于开源中国 git Push 钩子的问题

WBOY
WBOYOriginal
2016-06-06 20:10:29975browse

apache 用户已经有相应的执行权限了
在服务器上使用 sudo -u apache cd ... && git pull 也已经可以拉取到更新
但是通过 Web 访问时就出问题了

当版本库是最新时,能够得到命令执行结果 Already up-to-date.
但是当版本库不是最新时(有更新),得不到任何的执行结果反馈,命令没能执行成功

我是通过 https://username:password@git.oschina.net/username/project.git 拉取更新的

回复内容:

apache 用户已经有相应的执行权限了
在服务器上使用 sudo -u apache cd ... && git pull 也已经可以拉取到更新
但是通过 Web 访问时就出问题了

当版本库是最新时,能够得到命令执行结果 Already up-to-date.
但是当版本库不是最新时(有更新),得不到任何的执行结果反馈,命令没能执行成功

我是通过 https://username:password@git.oschina.net/username/project.git 拉取更新的

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn