Skip to content

Commit 812b80a

Browse files
ignore untracked files in worktree, fixes #109
1 parent f9747f4 commit 812b80a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setuptools_scm/git.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def from_potential_worktree(cls, wd):
3030
return cls(real_wd)
3131

3232
def is_dirty(self):
33-
out, _, _ = self.do_ex("git status --porcelain")
33+
out, _, _ = self.do_ex("git status --porcelain --untracked-files=no")
3434
return bool(out)
3535

3636
def node(self):

0 commit comments

Comments
 (0)