You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by tv...@apache.org on 2022/05/10 10:27:02 UTC

[buildstream] branch master updated: Ensure the initial branch in git is master

This is an automated email from the ASF dual-hosted git repository.

tvb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/buildstream.git


The following commit(s) were added to refs/heads/master by this push:
     new 61d507130 Ensure the initial branch in git is master
     new 5d6ebb71b Merge pull request #1648 from nanonyme/new-git
61d507130 is described below

commit 61d50713068004500c8d41b115ceb4635a8f563e
Author: Seppo Yli-Olli <se...@gmail.com>
AuthorDate: Sat May 7 22:36:55 2022 +0300

    Ensure the initial branch in git is master
    
    There's many tests depending on this all around and default
    branch is changing to main so it's better to be explicit.
---
 tests/testutils/repo/git.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/testutils/repo/git.py b/tests/testutils/repo/git.py
index b7f0db15d..34d4e12c4 100644
--- a/tests/testutils/repo/git.py
+++ b/tests/testutils/repo/git.py
@@ -32,6 +32,7 @@ class Git(Repo):
     def create(self, directory):
         self.copy_directory(directory, self.repo)
         self._run_git("init", ".")
+        self._run_git("checkout", "-b", "master")
         self._run_git("add", ".")
         self._run_git("commit", "-m", "Initial commit")
         return self.latest_commit()