@matheusbsbs / matheus-bagliano / commits / fbc0e7ac14
Fork 0

Fix pre-commit hooks under MinGW/MSYS

Apply the work-around for checking the executable permission of hook files not only on Cygwin, but on Windows in general. Signed-off-by: Alexander Gavrilov <angavrilov@gmail.com> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

Alexander Gavrilov committed Jul 17, 2008 at 00:12 UTC fbc0e7ac1479b4262f6090098a4f68c3438aa94b
1 file changed +2 -2
git-gui.sh
+2 -2
@@ -473,10 +473,10 @@ proc githook_read {hook_name args} {
473 set pchook [gitdir hooks $hook_name]
474 lappend args 2>@1
475
476 - # On Cygwin [file executable] might lie so we need to ask
476 + # On Windows [file executable] might lie so we need to ask
477 # the shell if the hook is executable. Yes that's annoying.
478 #
479 - if {[is_Cygwin]} {
479 + if {[is_Windows]} {
480 upvar #0 _sh interp
481 if {![info exists interp]} {
482 set interp [_which sh]