We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c35f607 + 551e7c3 commit dae38fdCopy full SHA for dae38fd
git-gui/git-gui.sh
@@ -664,7 +664,11 @@ proc git_write {args} {
664
}
665
666
proc githook_read {hook_name args} {
667
- set pchook [gitdir hooks $hook_name]
+ if {[package vcompare $::_git_version 2.5.0] >= 0} {
668
+ set pchook [git rev-parse --git-path "hooks/$hook_name"]
669
+ } else {
670
+ set pchook [gitdir hooks $hook_name]
671
+ }
672
lappend args 2>@1
673
674
# On Windows [file executable] might lie so we need to ask
0 commit comments