From 6c903aacff10483279a70235cfc26704e92c0458 Mon Sep 17 00:00:00 2001 From: jack1142 <6032823+jack1142@users.noreply.github.com> Date: Tue, 16 Mar 2021 19:50:51 +0100 Subject: [PATCH] Update Downloader tests to work with newer git versions (#4891) --- redbot/pytest/downloader.py | 1 + 1 file changed, 1 insertion(+) diff --git a/redbot/pytest/downloader.py b/redbot/pytest/downloader.py index 467047d57..c66ab5f9b 100644 --- a/redbot/pytest/downloader.py +++ b/redbot/pytest/downloader.py @@ -139,6 +139,7 @@ def _init_test_repo(destination: Path): git_dirparams = ("git", "-C", str(destination)) init_commands = ( (*git_dirparams, "init"), + (*git_dirparams, "checkout", "-b", "master"), (*git_dirparams, "config", "--local", "user.name", "Cog-Creators"), (*git_dirparams, "config", "--local", "user.email", "cog-creators@example.org"), (*git_dirparams, "config", "--local", "commit.gpgSign", "false"),