Merge "Fix create_branch in tests" into feature/zuulv3

This commit is contained in:
Zuul 2017-09-22 23:44:54 +00:00 committed by Gerrit Code Review
commit d275039481
1 changed files with 1 additions and 1 deletions

View File

@ -2419,7 +2419,7 @@ class ZuulTestCase(BaseTestCase):
def create_branch(self, project, branch):
path = os.path.join(self.upstream_root, project)
repo = git.Repo.init(path)
repo = git.Repo(path)
fn = os.path.join(path, 'README')
branch_head = repo.create_head(branch)