This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 9375e490935 Add `check=False` to `fix_group_permissions` commands
(#48079)
9375e490935 is described below
commit 9375e4909359dbe365a3f3f112e0721029df1f4e
Author: Vincent <[email protected]>
AuthorDate: Sat Mar 22 16:23:13 2025 -0400
Add `check=False` to `fix_group_permissions` commands (#48079)
---
dev/breeze/src/airflow_breeze/utils/run_utils.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dev/breeze/src/airflow_breeze/utils/run_utils.py
b/dev/breeze/src/airflow_breeze/utils/run_utils.py
index de58d3c382b..778b3e28bbc 100644
--- a/dev/breeze/src/airflow_breeze/utils/run_utils.py
+++ b/dev/breeze/src/airflow_breeze/utils/run_utils.py
@@ -332,13 +332,13 @@ def fix_group_permissions():
"""Fixes permissions of all the files and directories that have
group-write access."""
if get_verbose():
get_console().print("[info]Fixing group permissions[/]")
- files_to_fix_result = run_command(["git", "ls-files", "./"],
capture_output=True, text=True)
+ files_to_fix_result = run_command(["git", "ls-files", "./"],
capture_output=True, check=False, text=True)
if files_to_fix_result.returncode == 0:
files_to_fix = files_to_fix_result.stdout.strip().splitlines()
for file_to_fix in files_to_fix:
change_file_permission(Path(file_to_fix))
directories_to_fix_result = run_command(
- ["git", "ls-tree", "-r", "-d", "--name-only", "HEAD"],
capture_output=True, text=True
+ ["git", "ls-tree", "-r", "-d", "--name-only", "HEAD"],
capture_output=True, check=False, text=True
)
if directories_to_fix_result.returncode == 0:
directories_to_fix =
directories_to_fix_result.stdout.strip().splitlines()