From ec4fceece4a9f155afcadec254caff5cef781c67 Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Mon, 16 Jul 2007 18:44:23 -0400 Subject: [PATCH] git-gui: Brown paper bag "dirty git version fix" My prior change to allow git-gui to run with a version of Git that was built from a working directory that had uncommitted changes didn't account for the pattern starting with -, and that confused Tcl. Signed-off-by: Shawn O. Pearce --- git-gui.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-gui.sh b/git-gui.sh index bdb557184..38084515c 100755 --- a/git-gui.sh +++ b/git-gui.sh @@ -544,7 +544,7 @@ if {![regsub {^git version } $_git_version {} _git_version]} { error_popup "Cannot parse Git version string:\n\n$_git_version" exit 1 } -regsub {-dirty$} $_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 -- 2.30.2