Skip to content

Commit

Permalink
check=True [skipci]
Browse files Browse the repository at this point in the history
  • Loading branch information
zmoon committed Oct 1, 2024
1 parent f3506b2 commit 0fbc509
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions uscrn/_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def current_commit() -> str | None:

cmd = ["git", "-C", maybe_repo.as_posix(), "rev-parse", "--verify", "--short", "HEAD"]
try:
cp = subprocess.run(cmd, text=True, capture_output=True)
cp = subprocess.run(cmd, check=True, text=True, capture_output=True)
except Exception:
return None
else:
Expand All @@ -67,7 +67,7 @@ def get_tags() -> list[tuple[str, str]] | None:

cmd = ["git", "-C", maybe_repo.as_posix(), "tag"]
try:
cp = subprocess.run(cmd, text=True, capture_output=True)
cp = subprocess.run(cmd, check=True, text=True, capture_output=True)
except Exception:
return None
else:
Expand Down Expand Up @@ -95,7 +95,7 @@ def commit_date(commit: str) -> datetime.datetime | None:

cmd = ["git", "-C", maybe_repo.as_posix(), "show", "--no-patch", r"--format=%cI", commit]
try:
cp = subprocess.run(cmd, text=True, capture_output=True)
cp = subprocess.run(cmd, check=True, text=True, capture_output=True)
except Exception:
return None
else:
Expand Down

0 comments on commit 0fbc509

Please sign in to comment.