Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions revup/upload.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import argparse
import enum
import logging
import os
import shlex
import subprocess
Expand Down Expand Up @@ -31,6 +32,7 @@ def run_pre_upload(pre_upload: str, ref_args: List[str], repo_root: str) -> None
if os.path.isfile(in_repo_root):
command[0] = in_repo_root

logging.debug("Running pre-upload command: {}".format(" ".join(command)))
try:
result = subprocess.run(
command,
Expand All @@ -42,6 +44,8 @@ def run_pre_upload(pre_upload: str, ref_args: List[str], repo_root: str) -> None
)
except OSError as exc:
raise RevupShellException(f"Couldn't run pre-upload command: {exc}") from exc
if result.stdout:
logging.debug("Pre-upload output:\n{}".format(result.stdout.rstrip()))
if result.returncode != 0:
raise RevupShellException(
f"Pre-upload command failed:\n{result.stdout}\n"
Expand Down
Loading