From e64faf0b9a84b6049b8eb22a5e3404e890a47e1d Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Tue, 24 May 2022 14:20:21 -0600 Subject: [PATCH] test_util.git_repository: Create main branch (if necessary) Signed-off-by: Zack Cerza --- teuthology/suite/test/test_util.py | 1 + 1 file changed, 1 insertion(+) diff --git a/teuthology/suite/test/test_util.py b/teuthology/suite/test/test_util.py index d4c8541f5d..d1ac74048e 100644 --- a/teuthology/suite/test/test_util.py +++ b/teuthology/suite/test/test_util.py @@ -37,6 +37,7 @@ def git_repository(request): git config user.name 'Your Name' git add A git commit -m 'A' A + git rev-parse --abbrev-ref main || git checkout -b main """.format(d=d)) def fin(): -- 2.39.5