Skip to content

Commit fbc0e7a

Browse files
angavrilovspearce
authored andcommitted
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>
1 parent f049e09 commit fbc0e7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

git-gui.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -473,10 +473,10 @@ proc githook_read {hook_name args} {
473473
set pchook [gitdir hooks $hook_name]
474474
lappend args 2>@1
475475
476-
# On Cygwin [file executable] might lie so we need to ask
476+
# On Windows [file executable] might lie so we need to ask
477477
# the shell if the hook is executable. Yes that's annoying.
478478
#
479-
if {[is_Cygwin]} {
479+
if {[is_Windows]} {
480480
upvar #0 _sh interp
481481
if {![info exists interp]} {
482482
set interp [_which sh]

0 commit comments

Comments
 (0)