开发者

Git hook written in python on Windows

How can I set the path for python开发者_如何学C on Git hook on Windows platform?

I have tryed:

#!/c/Python/27/python.exe

but got error:

error: cannot spawn .git/hooks/post-commit: No such file or directory


Using #!/usr/bin/env python instead is probably easiest. But your main problem in that particular case might be that usually it's Python27, not Python/27.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜