Signed-off-by: vladmandic <mandic00@live.com>
main
vladmandic 2026-03-26 08:09:49 +01:00
parent 1a35ac4d73
commit 88d2f12b1f
1 changed files with 1 additions and 1 deletions

View File

@ -246,7 +246,7 @@ def get_libs():
} }
def run_git_command(cmd_args: list, cwd: str = None): def run_git_command(cmd_args: list, cwd: str | None = None):
try: try:
res = subprocess.run(cmd_args, capture_output=True, cwd = cwd, check=True) res = subprocess.run(cmd_args, capture_output=True, cwd = cwd, check=True)
return res.stdout.decode(encoding = 'utf8', errors='ignore').strip() if len(res.stdout) > 0 else '' return res.stdout.decode(encoding = 'utf8', errors='ignore').strip() if len(res.stdout) > 0 else ''