8000 Better reporting in adverse conditions (#276) · python/core-workflow@25b3791 · GitHub
[go: up one dir, main page]

Skip to content

Commit 25b3791

authored
Better reporting in adverse conditions (#276)
* Remove excess whitespace * Allow stdout and stderr to play through the standard pipes such that any errors that occur will be rendered to the user for troubleshooting. Use --quiet on 'git rm' to suppress non-error output. Fixes #275 until the error happens again. * Also use longform of '--force' when invoking git for clarity of purpose.
1 parent a44b234 commit 25b3791

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

blurb/blurb.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ def chdir_to_repo_root():
723723
# find the root of the local CPython repo
724724
# note that we can't ask git, because we might
725725
# be in an exported directory tree!
726-
726+
727727
# we intentionally start in a (probably nonexistant) subtree
728728
# the first thing the while loop does is .., basically
729729
path = os.path.abspath("garglemox")
@@ -1135,14 +1135,14 @@ def print(*a, sep=" "):
11351135
git_add_files = []
11361136
def flush_git_add_files():
11371137
if git_add_files:
1138-
subprocess.run(["git", "add", "-f", *git_add_files], stdout=subprocess.PIPE, stderr=subprocess.PIPE).check_returncode()
1138+
subprocess.run(["git", "add", "--force", *git_add_files]).check_returncode()
11391139
git_add_files.clear()
11401140

11411141
git_rm_files = []
11421142
def flush_git_rm_files():
11431143
if git_rm_files:
11441144
try:
1145-
subprocess.run(["git", "rm", "-f", *git_rm_files], stdout=subprocess.PIPE, stderr=subprocess.PIPE).check_returncode()
1145+
subprocess.run(["git", "rm", "--quiet", "--force", *git_rm_files]).check_returncode()
11461146
except subprocess.CalledProcessError:
11471147
pass
11481148

0 commit comments

Comments
 (0)
0