diff options
Diffstat (limited to 'bitbake/lib/bb')
| -rw-r--r-- | bitbake/lib/bb/tests/fetch.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bitbake/lib/bb/tests/fetch.py b/bitbake/lib/bb/tests/fetch.py index 256f0fb788..d230120271 100644 --- a/bitbake/lib/bb/tests/fetch.py +++ b/bitbake/lib/bb/tests/fetch.py | |||
| @@ -424,6 +424,10 @@ class FetcherTest(unittest.TestCase): | |||
| 424 | 424 | ||
| 425 | def git_init(self, cwd=None): | 425 | def git_init(self, cwd=None): |
| 426 | self.git('init', cwd=cwd) | 426 | self.git('init', cwd=cwd) |
| 427 | # Explicitly set initial branch to master as | ||
| 428 | # a common setup is to use other default | ||
| 429 | # branch than master. | ||
| 430 | self.git(['checkout', '-b', 'master'], cwd=cwd) | ||
| 427 | if not self.git(['config', 'user.email'], cwd=cwd): | 431 | if not self.git(['config', 'user.email'], cwd=cwd): |
| 428 | self.git(['config', 'user.email', 'you@example.com'], cwd=cwd) | 432 | self.git(['config', 'user.email', 'you@example.com'], cwd=cwd) |
| 429 | if not self.git(['config', 'user.name'], cwd=cwd): | 433 | if not self.git(['config', 'user.name'], cwd=cwd): |
