git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* BUG: gitk fails to parse 1.7.4-rc0 version string
@ 2011-01-04 12:44 Mathias Lafeldt
  2011-01-07  0:42 ` [PATCH] gitk: Take only numeric version components when computing $git_version Anders Kaseorg
  0 siblings, 1 reply; 8+ messages in thread
From: Mathias Lafeldt @ 2011-01-04 12:44 UTC (permalink / raw)
  To: git; +Cc: paulus

Looks like gitk doesn't like the "-rc0" suffix.

$ git --version
git version 1.7.4-rc0

$ gitk
Error in startup script: expected version number but got "1.7.4-rc0"
    while executing
"package vcompare $git_version "1.6.6.2""
    (file "/usr/local/bin/gitk" line 1)

I temporarily fixed it by hard-coding the version string:

diff --git a/gitk-git/gitk b/gitk-git/gitk
index e82c6bf..367446e 100644
--- a/gitk-git/gitk
+++ b/gitk-git/gitk
@@ -11581,7 +11581,7 @@ if {![info exists have_ttk]} {
 set use_ttk [expr {$have_ttk && $want_ttk}]
 set NS [expr {$use_ttk ? "ttk" : ""}]

-set git_version [join [lrange [split [lindex [exec git version] end] .]
0 2] .]
+set git_version "1.7.4"


 set show_notes {}
 if {[package vcompare $git_version "1.6.6.2"] >= 0} {


-Mathias

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-01-19  9:35 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-04 12:44 BUG: gitk fails to parse 1.7.4-rc0 version string Mathias Lafeldt
2011-01-07  0:42 ` [PATCH] gitk: Take only numeric version components when computing $git_version Anders Kaseorg
2011-01-11 13:46   ` Mathias Lafeldt
2011-01-13 19:22     ` Jonathan Nieder
2011-01-18  9:12       ` Mathias Lafeldt
2011-01-18 10:47         ` Paul Mackerras
2011-01-18 21:26           ` Junio C Hamano
2011-01-19  9:35   ` Paul Mackerras

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).