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 0098751 + 6d64ce8 commit a5fcc1eCopy full SHA for a5fcc1e
git-gui/git-gui.sh
@@ -682,7 +682,11 @@ proc git_write {args} {
682
}
683
684
proc githook_read {hook_name args} {
685
- set pchook [gitdir hooks $hook_name]
+ if {[package vcompare $::_git_version 2.5.0] >= 0} {
686
+ set pchook [git rev-parse --git-path "hooks/$hook_name"]
687
+ } else {
688
+ set pchook [gitdir hooks $hook_name]
689
+ }
690
lappend args 2>@1
691
692
# On Windows [file executable] might lie so we need to ask
0 commit comments