开发者

Git hook written in python on Windows

开发者 https://www.devze.com 2023-03-14 05:59 出处:网络
How can I set the path for python开发者_如何学C on Git hook on Windows platform? I have tryed: #!/c/Python/27/python.exe

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

精彩评论

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