summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2dfa54c)
raw | patch | inline | side by side (parent: 2dfa54c)
author | Shawn O. Pearce <spearce@spearce.org> | |
Mon, 16 Jul 2007 22:44:23 +0000 (18:44 -0400) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Mon, 16 Jul 2007 22:44:23 +0000 (18:44 -0400) |
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 <spearce@spearce.org>
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 <spearce@spearce.org>
git-gui.sh | patch | blob | history |
diff --git a/git-gui.sh b/git-gui.sh
index bdb557184ea41616ff85e93d75762db2e2446dbb..38084515cba69b1fa1e8c29834f1de562014d44f 100755 (executable)
--- a/git-gui.sh
+++ b/git-gui.sh
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