mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 12:24:59 +00:00
refactor: Update subprocess.run with text, shell, and encoding parameters
This commit is contained in:
parent
1a7a2f3088
commit
1c79d517fc
1 changed files with 8 additions and 1 deletions
|
@ -124,7 +124,14 @@ def main():
|
||||||
for cmd in git_commands:
|
for cmd in git_commands:
|
||||||
print(f"Running: {' '.join(cmd)}")
|
print(f"Running: {' '.join(cmd)}")
|
||||||
if not dry_run:
|
if not dry_run:
|
||||||
subprocess.run(cmd, check=True)
|
subprocess.run(
|
||||||
|
cmd,
|
||||||
|
text=True,
|
||||||
|
shell=True,
|
||||||
|
encoding="utf-8",
|
||||||
|
errors="replace",
|
||||||
|
check=True,
|
||||||
|
)
|
||||||
|
|
||||||
new_dev_version = f"{incremented_version}.dev"
|
new_dev_version = f"{incremented_version}.dev"
|
||||||
updated_dev_content = re.sub(
|
updated_dev_content = re.sub(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue