Tiaf bucket top level fix (#3085)
* Revert to regular run when invalid commits used. * Cirrect s3 logging of last commit hash storage * Add s3 top level url and build number script params. * Use existing REPOSITORY_NAME env var. Signed-off-by: John <jonawals@amazon.com>
This commit is contained in:
@@ -14,6 +14,7 @@ import pathlib
|
||||
class Repo:
|
||||
def __init__(self, repo_path: str):
|
||||
self._repo = git.Repo(repo_path)
|
||||
self._remote_url = self._repo.remotes[0].config_reader.get("url")
|
||||
|
||||
# Returns the current branch
|
||||
@property
|
||||
@@ -21,6 +22,11 @@ class Repo:
|
||||
branch = self._repo.active_branch
|
||||
return branch.name
|
||||
|
||||
# Returns the remote URL
|
||||
@property
|
||||
def remote_url(self):
|
||||
return self._remote_url
|
||||
|
||||
def create_diff_file(self, src_commit_hash: str, dst_commit_hash: str, output_path: pathlib.Path, multi_branch: bool):
|
||||
"""
|
||||
Attempts to create a diff from the src and dst commits and write to the specified output file.
|
||||
|
||||
Reference in New Issue
Block a user