summaryrefslogtreecommitdiff
path: root/git/cmd.py
diff options
context:
space:
mode:
authorDavid Briscoe <idbrii@gmail.com>2022-01-12 23:39:10 -0800
committerSebastian Thiel <sebastian.thiel@icloud.com>2022-01-14 08:27:40 +0800
commitb719e1809c2c81283e930086faebd7d6050cd5d7 (patch)
treee6d3289d238621ba4a8bb83d3bbe307775bd9188 /git/cmd.py
parentfac603789d66c0fd7c26e75debb41b06136c5026 (diff)
downloadgitpython-b719e1809c2c81283e930086faebd7d6050cd5d7.tar.gz
Use bash to open extensionless hooks on windows
Fix #971. Partly resolve #703. If the hook doesn't have a file extension, then Windows won't know how to run it and you'll get "[WinError 193] %1 is not a valid Win32 application". It's very likely that it's a shell script of some kind, so use bash.exe (commonly installed via Windows Subsystem for Linux). We don't want to run all hooks with bash because they could be .bat files. Update tests to get several hook ones working. More work necessary to get commit-msg hook working. The hook writes to the wrong file because it's not using forward slashes in the path: C:\Users\idbrii\AppData\Local\Temp\bare_test_commit_msg_hook_successy5fo00du\CUsersidbriiAppDataLocalTempbare_test_commit_msg_hook_successy5fo00duCOMMIT_EDITMSG
Diffstat (limited to 'git/cmd.py')
0 files changed, 0 insertions, 0 deletions