Remove '' from the git log format
Signed-off-by: Michal Konečný <mkonecny@redhat.com>
This commit is contained in:
parent
114f083e22
commit
cf49bd5a42
2 changed files with 3 additions and 3 deletions
|
@ -72,7 +72,7 @@ class TestGitRepoFirstCommit:
|
|||
commit = self.repo.first_commit(branch)
|
||||
|
||||
self.repo.repo.git.log.assert_called_with(
|
||||
"--reverse", "--pretty=format:'%H'", branch
|
||||
"--reverse", "--pretty=format:%H", branch
|
||||
)
|
||||
|
||||
assert commit == "hash1"
|
||||
|
@ -90,7 +90,7 @@ class TestGitRepoFirstCommit:
|
|||
commit = self.repo.first_commit(branch)
|
||||
|
||||
self.repo.repo.git.log.assert_called_with(
|
||||
"--reverse", "--pretty=format:'%H'", branch
|
||||
"--reverse", "--pretty=format:%H", branch
|
||||
)
|
||||
|
||||
assert commit is None
|
||||
|
|
|
@ -54,7 +54,7 @@ class GitRepo:
|
|||
Hash of commit.
|
||||
"""
|
||||
# This will return only commit hashes for commits
|
||||
commits = self.repo.git.log("--reverse", "--pretty=format:'%H'", branch) # type: ignore
|
||||
commits = self.repo.git.log("--reverse", "--pretty=format:%H", branch) # type: ignore
|
||||
|
||||
result = None
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue