self.tempdir = tempfile.TemporaryDirectory(prefix='git_cache_test-')
self.upstream = os.path.join(self.tempdir.name, 'upstream')
- subprocess.run(['git', 'init', self.upstream], check=True)
+ subprocess.run(['git', '-c', 'init.defaultBranch=master',
+ 'init', self.upstream], check=True)
_commit_file(self.upstream, 'file', 'Contents', 'First commit')
def tearDown(self) -> None: