summaryrefslogtreecommitdiff
path: root/git-gui.sh
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2007-07-16 22:44:23 (GMT)
committerShawn O. Pearce <spearce@spearce.org>2007-07-16 22:44:23 (GMT)
commitec4fceece4a9f155afcadec254caff5cef781c67 (patch)
tree3d9b758c8bd72915b82c5adaaa3677730893401c /git-gui.sh
parent2dfa54c6cb39c443652440f1ee6fdf5a6067364a (diff)
downloadgit-ec4fceece4a9f155afcadec254caff5cef781c67.zip
git-ec4fceece4a9f155afcadec254caff5cef781c67.tar.gz
git-ec4fceece4a9f155afcadec254caff5cef781c67.tar.bz2
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 <spearce@spearce.org>
Diffstat (limited to 'git-gui.sh')
-rwxr-xr-xgit-gui.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-gui.sh b/git-gui.sh
index bdb5571..3808451 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