Skip to content

Commit cca8ead

Browse files
authored
Merge pull request #819 from opsmill/copilot/fix-deprecation-warning-ci
Fix dulwich checkout_branch deprecation warning in testing utilities
2 parents 089656f + 2ae03cb commit cca8ead

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

infrahub_sdk/testing/repository.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def init(self) -> None:
7373
if files_to_add:
7474
porcelain.add(repo=self._repo.git.path, paths=files_to_add)
7575
porcelain.commit(repo=self._repo.git.path, message="First commit")
76-
porcelain.checkout_branch(self._repo.git, self.initial_branch.encode("utf-8"))
76+
porcelain.checkout(repo=self._repo.git, target=self.initial_branch)
7777

7878
async def add_to_infrahub(self, client: InfrahubClient, branch: str | None = None) -> dict:
7979
input_data = {

0 commit comments

Comments
 (0)