Skip to content

Commit fe38f47

Browse files
committed
fixed sha format
1 parent 66eff19 commit fe38f47

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

socketsecurity/core/git_interface.py

+5
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,8 @@ def __init__(self, path: str):
4444
if item != "":
4545
full_path = f"{self.path}/{item}"
4646
self.changed_files.append(full_path)
47+
48+
@property
49+
def commit_str(self) -> str:
50+
"""Return commit SHA as a string"""
51+
return self.commit.hexsha

socketsecurity/socketcli.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def main_code():
8787
if not config.repo:
8888
config.repo = git_repo.repo_name
8989
if not config.commit_sha:
90-
config.commit_sha = git_repo.commit
90+
config.commit_sha = git_repo.commit_str
9191
if not config.branch:
9292
config.branch = git_repo.branch
9393
if not config.committers:

0 commit comments

Comments
 (0)