@matheusbsbs / matheus-bagliano / commits / 2dfa54c6cb
Fork 0

git-gui: Skip -dirty suffix on core git versions

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>

Shawn O. Pearce committed Jul 16, 2007 at 02:39 UTC 2dfa54c6cb39c443652440f1ee6fdf5a6067364a
1 file changed +1
git-gui.sh
+1
@@ -544,6 +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
548 regsub {\.[0-9]+\.g[0-9a-f]+$} $_git_version {} _git_version
549 regsub {\.rc[0-9]+$} $_git_version {} _git_version
550