From: Zack Cerza Date: Tue, 24 May 2022 20:20:21 +0000 (-0600) Subject: test_util.git_repository: Create main branch X-Git-Tag: 1.2.0~169^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1757%2Fhead;p=teuthology.git test_util.git_repository: Create main branch (if necessary) Signed-off-by: Zack Cerza --- diff --git a/teuthology/suite/test/test_util.py b/teuthology/suite/test/test_util.py index d4c8541f5..d1ac74048 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():