@matheusbsbs / matheus-bagliano / commits / 194bbf6cc8
Fork 0

gitk: Handle msysGit version during version comparisons

msysGit generates version strings with text appended which cannot be used with vcompare; trying to use them generates a Tcl error. Limit git_version to the first three digits which are the real git version to avoid this error. Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net> Signed-off-by: Paul Mackerras <paulus@samba.org>

Pat Thoyts committed May 18, 2009 at 22:46 UTC 194bbf6cc8c2f3c14a920c841841d66b7667a848
1 file changed +1 -1
gitk
+1 -1
@@ -11152,7 +11152,7 @@ set nullid2 "0000000000000000000000000000000000000001"
11152 set nullfile "/dev/null"
11153
11154 set have_tk85 [expr {[package vcompare $tk_version "8.5"] >= 0}]
11155 -set git_version [lindex [exec git version] end]
11155 +set git_version [join [lrange [split [lindex [exec git version] end] .] 0 2] .]
11156
11157 set runq {}
11158 set history {}