Skip to content

Commit

Permalink
Adding debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
IanWoodard committed Jan 17, 2025
1 parent 4179345 commit 6c3233c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion devservices/utils/dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -615,13 +615,16 @@ def _has_remote_config(remote_config: RemoteConfig | None) -> TypeGuard[RemoteCo


def _rev_parse(repo_dir: str, ref: str) -> str:
return (
rev = (
subprocess.check_output(
["git", "rev-parse", ref], cwd=repo_dir, stderr=subprocess.PIPE
)
.strip()
.decode()
)
logger = logging.getLogger(LOGGER_NAME)
logger.debug("Parsed revision %s for %s", rev, ref)
return rev


def _run_command(
Expand Down

0 comments on commit 6c3233c

Please sign in to comment.