| |
@@ -113,7 +113,7 @@
|
| |
|
| |
subprocess.run(['git', 'add', '.'], check=True, cwd=repo_dir)
|
| |
|
| |
- out = subprocess.run(['git', 'status', '--porcelain'], check=True, cwd=repo_dir, capture_output=True)
|
| |
+ out = subprocess.run(['git', 'status', '--porcelain'], check=True, cwd=repo_dir, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
| |
|
| |
if out.stdout.decode("utf-8") :
|
| |
subprocess.run(["git", "commit", "-m", "automatic update of translated content"],
|
| |
@@ -144,7 +144,7 @@
|
| |
|
| |
subprocess.run(['git', 'add', '.'], check=True, cwd=repo_dir)
|
| |
|
| |
- out = subprocess.run(['git', 'status', '--porcelain'], check=True, cwd=repo_dir, capture_output=True)
|
| |
+ out = subprocess.run(['git', 'status', '--porcelain'], check=True, cwd=repo_dir, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
| |
|
| |
if out.stdout.decode("utf-8") :
|
| |
subprocess.run(["git", "commit", "-m", "automatic update of pot/po files"],
|
| |
Since capture_output is only on 3.7, we need to find another
way to detect we have to commit something