git-gui: Skip -dirty suffix on core git versions
authorShawn O. Pearce <spearce@spearce.org>
Mon, 16 Jul 2007 06:39:07 +0000 (02:39 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Mon, 16 Jul 2007 06:39:07 +0000 (02:39 -0400)
If the user is running a 'dirty' version of git (one compiled in a
working directory with modified files) we want to just assume it
was a committed version, as we really only look at the part that
came from a real annotated tag anyway.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui.sh

index 2077261e647904d9871479411263d0fdcbb79662..bdb557184ea41616ff85e93d75762db2e2446dbb 100755 (executable)
@@ -544,6 +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 {\.[0-9]+\.g[0-9a-f]+$} $_git_version {} _git_version
 regsub {\.rc[0-9]+$} $_git_version {} _git_version