Heim  >  Artikel  >  Backend-Entwicklung  >  关于开源中国 git Push 钩子的问题

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

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

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 拉取更新的

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn