Skip to content

Commit

Permalink
initial-branch is not available on git<2.28
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianegli committed Oct 20, 2022
1 parent 9b7348c commit 3bbc558
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ def setUp(self):
)
self.create_obj.init_pipeline()
self.remote_path = os.path.join(self.tmp_dir, "remote_repo")
self.remote_repo = git.Repo.init(self.remote_path, bare=True, initial_branch=default_branch)
self.remote_repo = git.Repo.init(self.remote_path, bare=True)
self.remote_repo.active_branch.rename(default_branch)

def tearDown(self):
if os.path.exists(self.tmp_dir):
Expand Down

0 comments on commit 3bbc558

Please sign in to comment.