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
.
精彩评论