diff --git a/rebase.py b/rebase.py index 9a77ecf..0d86908 100644 --- a/rebase.py +++ b/rebase.py @@ -49,7 +49,7 @@ def main(stash=False, dry_run=False, lshistory=False, load=None): doStash(lambda: doCommit(cs), stash) def checkPristine(): - if(len(git_exec(['ls-files', '--modified']).splitlines()) > 0): + if(len(git_exec(['ls-files', '--modified', '--others', '--exclude-standard']).splitlines()) > 0): fail('There are uncommitted files in your git directory') def doCommit(cs):