@matheusbsbs / matheus-bagliano / commits / ec4fceece4
Fork 0

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>

Shawn O. Pearce committed Jul 16, 2007 at 18:44 UTC ec4fceece4a9f155afcadec254caff5cef781c67
1 file changed +1 -1
git-gui.sh
+1 -1
@@ -544,7 +544,7 @@ if {![regsub {^git version } $_git_version {} _git_version]} {
544 error_popup "Cannot parse Git version string:\n\n$_git_version"
545 exit 1
546 }
547 -regsub {-dirty$} $_git_version {} _git_version
547 +regsub -- {-dirty$} $_git_version {} _git_version
548 regsub {\.[0-9]+\.g[0-9a-f]+$} $_git_version {} _git_version
549 regsub {\.rc[0-9]+$} $_git_version {} _git_version
550