From 812b80a44891cd9b331bb5a3d229f8d02b0be094 Mon Sep 17 00:00:00 2001 From: Ronny Pfannschmidt Date: Thu, 13 Oct 2016 08:35:29 +0200 Subject: [PATCH] ignore untracked files in worktree, fixes #109 --- setuptools_scm/git.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setuptools_scm/git.py b/setuptools_scm/git.py index 10280e50..2b4e19de 100644 --- a/setuptools_scm/git.py +++ b/setuptools_scm/git.py @@ -30,7 +30,7 @@ def from_potential_worktree(cls, wd): return cls(real_wd) def is_dirty(self): - out, _, _ = self.do_ex("git status --porcelain") + out, _, _ = self.do_ex("git status --porcelain --untracked-files=no") return bool(out) def node(self):