diff options
author | Chris Johns <chrisj@rtems.org> | 2018-11-26 11:51:22 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2018-11-26 14:37:09 +1100 |
commit | 29f9e10ed4c1650d7fdcab8e3fb24b2cbbf5a0d5 (patch) | |
tree | a4bba91dc64d66ddfc9223d9072df41ea13fa431 /rtemstoolkit | |
parent | af5cecfff0f49355e7ca8f0cb33156959c3f067e (diff) |
rtemstoolkit/git: Ignore untracked files in the dirty state.
Diffstat (limited to 'rtemstoolkit')
-rw-r--r-- | rtemstoolkit/git.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/rtemstoolkit/git.py b/rtemstoolkit/git.py index e1dd029..b92391f 100644 --- a/rtemstoolkit/git.py +++ b/rtemstoolkit/git.py @@ -152,7 +152,10 @@ class repo: def dirty(self): _status = self.status() - return not (len(_status) == 1 and 'branch' in _status) + status_keys = list(_status.keys()) + if 'untracked' in status_keys: + status_keys.remove('untracked') + return not (len(status_keys) == 1 and 'branch' in _status) def valid(self): if path.exists(self.path): |