git/list[1] front-page[2] threads[3] people[4] search[5] about
 

BUG: gitk fails to parse 1.7.4-rc0 version string

From
Mathias Lafeldt <misfire@debugon.org>
Date
Jan 4, 2011, 12:44 UTC
Message-ID
<4D231646.5080005@debugon.org>
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
Next: Anders Kaseorg
Message 1 of 8 in “BUG: gitk fails to parse 1.7.4-rc0 version string”
  1. Mathias LafeldtJan 4, 2011
  2. gitk: Take only numeric version components when computing $git_versionAnders Kaseorg, Jan 7, 2011
  3. Mathias LafeldtJan 11, 2011
  4. Jonathan NiederJan 13, 2011
  5. Mathias LafeldtJan 18, 2011
  6. Paul MackerrasJan 18, 2011
  7. Junio C HamanoJan 18, 2011
  8. Paul MackerrasJan 19, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.