mirror of
https://github.com/TinyTapeout/tt-support-tools.git
synced 2026-11-02 20:26:10 +01:00
fix(tt_tool): allow hardening in git repos without a remote
This commit is contained in:
@@ -290,7 +290,10 @@ class Project:
|
||||
return top_verilog[0]
|
||||
|
||||
def get_git_remote(self):
|
||||
try:
|
||||
return list(Repo(self.local_dir).remotes[0].urls)[0]
|
||||
except IndexError:
|
||||
return "N/A"
|
||||
|
||||
def get_git_commit_hash(self):
|
||||
return Repo(self.local_dir).commit().hexsha
|
||||
|
||||
Reference in New Issue
Block a user