diff --git a/HaikuPorter/Source.py b/HaikuPorter/Source.py index febdf030..b286a9c5 100644 --- a/HaikuPorter/Source.py +++ b/HaikuPorter/Source.py @@ -500,7 +500,7 @@ def _initImplicitGitRepo(self): """Import sources into git repository""" ensureCommandIsAvailable('git') - info(check_output(['git', 'init'], cwd=self.sourceDir).decode('utf-8')) + info(check_output(['git', 'init', '-b', 'main'], cwd=self.sourceDir).decode('utf-8')) info(check_output(['git', 'config', 'gc.auto', '0'], cwd=self.sourceDir).decode('utf-8')) # Disable automatic garbage collection. This works around an issue # with git failing to do that with the haikuwebkit repository.