From 78cf152444d7580761a76d3ad396681ea3368119 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 11 Feb 2026 07:30:29 +0000 Subject: [PATCH 1/2] Initial plan From 2ae03cb7c4ec2c659a03df61acc370d2893cc2f2 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 11 Feb 2026 07:34:18 +0000 Subject: [PATCH 2/2] Replace deprecated checkout_branch with checkout in testing repository Co-authored-by: ogenstad <6694669+ogenstad@users.noreply.github.com> --- infrahub_sdk/testing/repository.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infrahub_sdk/testing/repository.py b/infrahub_sdk/testing/repository.py index 9e974164..fab269d1 100644 --- a/infrahub_sdk/testing/repository.py +++ b/infrahub_sdk/testing/repository.py @@ -73,7 +73,7 @@ def init(self) -> None: if files_to_add: porcelain.add(repo=self._repo.git.path, paths=files_to_add) porcelain.commit(repo=self._repo.git.path, message="First commit") - porcelain.checkout_branch(self._repo.git, self.initial_branch.encode("utf-8")) + porcelain.checkout(repo=self._repo.git, target=self.initial_branch) async def add_to_infrahub(self, client: InfrahubClient, branch: str | None = None) -> dict: input_data = {