summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Alexander Gavrilov <angavrilov@gmail.com>2008-07-17 00:12:28 +0400
committerLibravatar Shawn O. Pearce <spearce@spearce.org>2008-07-16 21:17:27 -0400
commitfbc0e7ac1479b4262f6090098a4f68c3438aa94b (patch)
tree9d795180822164b828c74233a27a5c3ade4c14b5
parentgit-gui: MERGE_RR lives in .git/ directly with newer Git versions (diff)
downloadtgif-fbc0e7ac1479b4262f6090098a4f68c3438aa94b.tar.xz
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>
-rwxr-xr-xgit-gui.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/git-gui.sh b/git-gui.sh
index 940677cbd8..e3b6669880 100755
--- a/git-gui.sh
+++ b/git-gui.sh
@@ -473,10 +473,10 @@ proc githook_read {hook_name args} {
set pchook [gitdir hooks $hook_name]
lappend args 2>@1
- # On Cygwin [file executable] might lie so we need to ask
+ # On Windows [file executable] might lie so we need to ask
# the shell if the hook is executable. Yes that's annoying.
#
- if {[is_Cygwin]} {
+ if {[is_Windows]} {
upvar #0 _sh interp
if {![info exists interp]} {
set interp [_which sh]