From 44431bc042de69ddc51a3d6e4e37acb249cf29cf Mon Sep 17 00:00:00 2001 From: Konstantin Ryabitsev Date: Mon, 15 Aug 2022 12:50:18 -0400 Subject: ez: do not bail on untracked files for prep tasks We're not going to care about untracked files for most of b4 prep operations, so don't error out when they are present and we're running "is the tree clean" checks. Suggested-by: Maxime Ripard Signed-off-by: Konstantin Ryabitsev --- b4/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/b4/__init__.py b/b4/__init__.py index 3b8b9f3..fd70858 100644 --- a/b4/__init__.py +++ b/b4/__init__.py @@ -1967,8 +1967,10 @@ def git_get_command_lines(gitdir: Optional[str], args: list) -> List[str]: return lines -def git_get_repo_status(gitdir: Optional[str] = None) -> List[str]: +def git_get_repo_status(gitdir: Optional[str] = None, untracked: bool = False) -> List[str]: args = ['status', '--porcelain=v1'] + if not untracked: + args.append('--untracked-files=no') return git_get_command_lines(gitdir, args) -- cgit v1.2.3