We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 089656f + 2ae03cb commit cca8eadCopy full SHA for cca8ead
1 file changed
infrahub_sdk/testing/repository.py
@@ -73,7 +73,7 @@ def init(self) -> None:
73
if files_to_add:
74
porcelain.add(repo=self._repo.git.path, paths=files_to_add)
75
porcelain.commit(repo=self._repo.git.path, message="First commit")
76
- porcelain.checkout_branch(self._repo.git, self.initial_branch.encode("utf-8"))
+ porcelain.checkout(repo=self._repo.git, target=self.initial_branch)
77
78
async def add_to_infrahub(self, client: InfrahubClient, branch: str | None = None) -> dict:
79
input_data = {
0 commit comments