Remove '' from the git log format

Signed-off-by: Michal Konečný <mkonecny@redhat.com>
This commit is contained in:
Michal Konečný 2023-01-11 17:03:02 +01:00
parent 114f083e22
commit cf49bd5a42
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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