Skip to content

Commit

Permalink
Gates checking git commit in SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
skrawcz committed Jul 2, 2024
1 parent e3772dd commit 103902d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ui/sdk/src/hamilton_sdk/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,10 @@ def _derive_version_control_info(module_hash: str) -> GitInfo:
)
return default

commit = repo.head.commit
try:
commit = repo.head.commit
except ValueError:
return default
try:
repo_url = repo.remote().url
except ValueError:
Expand Down

0 comments on commit 103902d

Please sign in to comment.