Code

git-gui: Handle git versions of the form n.n.n.GIT
authorJulian Phillips <julian@quantumfyre.co.uk>
Tue, 17 Jul 2007 21:14:06 +0000 (22:14 +0100)
committerShawn O. Pearce <spearce@spearce.org>
Wed, 18 Jul 2007 01:48:57 +0000 (21:48 -0400)
The git-gui version check doesn't handle versions of the form
n.n.n.GIT which you can get by installing from an tarball produced by
git-archive.

Without this change you get an error of the form:
'Error in startup script: expected version number but got "1.5.3.GIT"'

Signed-off-by: Julian Phillips <julian@quantumfyre.co.uk>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui.sh

index d0b75c044c4f0f519ff2f942b1c1b22168c496da..ebc270866e2b918012b1d1bd758c3dba95b951b9 100755 (executable)
@@ -548,6 +548,7 @@ if {![regsub {^git version } $_git_version {} _git_version]} {
 regsub -- {-dirty$} $_git_version {} _git_version
 regsub {\.[0-9]+\.g[0-9a-f]+$} $_git_version {} _git_version
 regsub {\.rc[0-9]+$} $_git_version {} _git_version
+regsub {\.GIT$} $_git_version {} _git_version
 
 proc git-version {args} {
        global _git_version