I had the same problem on Mac 10.7.5 with git version 1.7.12.4
When I ran gitk I got an error:
"Error in startup script: expected version number but got "Git-37)"
while executing
"package vcompare $git_version "1.6.6.2""
invoked from within
"if {[package vcompare $git_version "1.6.6.2"] >= 0} {
set show_notes "--show-notes"
}"
(file "/usr/bin/gitk" line 11587)
When I looked at the code in gitk I saw the line that sets the version.
set git_version [join [lrange [split [lindex [exec git version] end] .] 0 2] .]
This somehow parsed the git version results to Git-37
instead of 1.7.12.4
I just replaced the git_version line with:
set git_version "1.7.12.4"