summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b215883)
raw | patch | inline | side by side (parent: b215883)
author | Shawn O. Pearce <spearce@spearce.org> | |
Mon, 16 Jul 2007 06:39:07 +0000 (02:39 -0400) | ||
committer | Shawn 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>
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 | patch | blob | history |
diff --git a/git-gui.sh b/git-gui.sh
index 2077261e647904d9871479411263d0fdcbb79662..bdb557184ea41616ff85e93d75762db2e2446dbb 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 {\.[0-9]+\.g[0-9a-f]+$} $_git_version {} _git_version
regsub {\.rc[0-9]+$} $_git_version {} _git_version