在 Windows 上从 GIT Bash 推送时不会调用 post-recieve
嘿, 我在远程存储库上启用了接收后挂钩,从 Linux 机器向上游推送标签\提交时工作正常。 (虽然我在推送时必须 sudo )。 但是,当从 Windows Git 客户端推送时,不会调用脚本。 有什么想法吗?
谢谢, 然
Hey,
I have a post-receive hook enabled on my remote repository, works fine when pushing tags\commit upstream from Linux Machine. ( although I have to sudo when pushing ) .
However - when pushing from Windows Git client, scripts is not invoked.
Any Ideas ?
Thanks,
Ran
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
脚本是否未被调用,或者您不仅仅在 Windows Git 客户端上看到脚本的输出?无论如何,如果不是最新的,我建议您更新客户端。
Are the scripts not invoked or you are not just seeing the output of the script on the Windows Git client? Anyway, I would recommend you to update the client if it is not latest.
可能是一个荒谬的建议。但您真的确定推送到同一个存储库吗?使用 git Remote -v 检查并比较来源(或任何您的远程存储库的名称)
Might be a ridiculous suggestion. But are you really sure that you push to the same repository? Check with git remote -v and compare origin (or whatever your remote repo is called)