git-gui: Handle git versions of the form n.n.n.GIT
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>
Julian Phillips committed
Jul 17, 2007 at 22:14 UTC
91464dfb102d6143182d8f312b68486e9dceb103
1 file changed
+1
git-gui.sh
+1
@@ -548,6 +548,7 @@ if {![regsub {^git version } $_git_version {} _git_version]} {
548
regsub -- {-dirty$} $_git_version {} _git_version
549
regsub {\.[0-9]+\.g[0-9a-f]+$} $_git_version {} _git_version
550
regsub {\.rc[0-9]+$} $_git_version {} _git_version
551
+regsub {\.GIT$} $_git_version {} _git_version
552
553
proc git-version {args} {
554
global _git_version