Message ID | 20230515064650.261681-1-peter@berginkonsult.se |
---|---|
State | Accepted, archived |
Commit | 5bcd213c23da30a84baba88b775b1740e6bb77d0 |
Headers | show |
Series | [v2] lib/bb/tests/fetch.py: set initial branch | expand |
diff --git a/lib/bb/tests/fetch.py b/lib/bb/tests/fetch.py index 532adb941..132cd8e80 100644 --- a/lib/bb/tests/fetch.py +++ b/lib/bb/tests/fetch.py @@ -424,6 +424,10 @@ class FetcherTest(unittest.TestCase): def git_init(self, cwd=None): self.git('init', cwd=cwd) + # Explicitly set initial branch to master as + # a common setup is to use other default + # branch than master. + self.git(['checkout', '-b', 'master'], cwd=cwd) if not self.git(['config', 'user.email'], cwd=cwd): self.git(['config', 'user.email', 'you@example.com'], cwd=cwd) if not self.git(['config', 'user.name'], cwd=cwd):