Skip to content

Commit a76433e

Browse files
dependabot[bot]patrit
authored andcommitted
build(deps): bump gitpython from 3.1.50 to 3.1.57
Bumps [gitpython](https://github.com/gitpython-developers/GitPython) from 3.1.50 to 3.1.57. - [Release notes](https://github.com/gitpython-developers/GitPython/releases) - [Changelog](https://github.com/gitpython-developers/GitPython/blob/main/CHANGES) - [Commits](gitpython-developers/GitPython@3.1.50...3.1.57) --- updated-dependencies: - dependency-name: gitpython dependency-version: 3.1.57 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
1 parent 51a4a9e commit a76433e

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

gitopscli/git_api/git_repo.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,10 @@ def get_author_from_last_commit(self) -> str:
133133

134134
def __remote_branch_exists(self, branch: str) -> bool:
135135
repo = self.__get_repo()
136-
return bool(repo.git.ls_remote("--heads", "origin", f"refs/heads/{branch}").strip() != "")
136+
result = repo.git.ls_remote("--heads", "origin", f"refs/heads/{branch}")
137+
if isinstance(result, str):
138+
return result.strip() != ""
139+
return bool(result)
137140

138141
def __delete_tmp_dir(self) -> None:
139142
if self.__tmp_dir:

uv.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)