Wincent Colaiuta  committed 2c2a378

git-gui: relax "dirty" version detection

"git gui" would complain at launch if the local version of Git was
"". Loosen the regular expression to look for either
"-dirty" or ".dirty", thus eliminating spurious warnings.

Signed-off-by: Wincent Colaiuta <>
Signed-off-by: Shawn O. Pearce <>

  • Participants
  • Parent commits 20a87ec

Comments (0)

Files changed (1)

 set _real_git_version $_git_version
-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
 regsub {\.GIT$} $_git_version {} _git_version