Skip to content

Commit 2c2a378

Browse files
wincentspearce
authored andcommitted
git-gui: relax "dirty" version detection
"git gui" would complain at launch if the local version of Git was "1.5.4.2.dirty". Loosen the regular expression to look for either "-dirty" or ".dirty", thus eliminating spurious warnings. Signed-off-by: Wincent Colaiuta <win@wincent.com> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
1 parent 20a87ec commit 2c2a378

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-gui.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ if {![regsub {^git version } $_git_version {} _git_version]} {
662662
}
663663
664664
set _real_git_version $_git_version
665-
regsub -- {-dirty$} $_git_version {} _git_version
665+
regsub -- {[\-\.]dirty$} $_git_version {} _git_version
666666
regsub {\.[0-9]+\.g[0-9a-f]+$} $_git_version {} _git_version
667667
regsub {\.rc[0-9]+$} $_git_version {} _git_version
668668
regsub {\.GIT$} $_git_version {} _git_version

0 commit comments

Comments
 (0)