X-Git-Url: http://git.scottworley.com/git-cache/blobdiff_plain/083b90e7f36d292909d0ce573e3681ddfb011a77..21971f7fbf702a0e9e35a3716b999ade7d02dd34:/test_git_cache.py diff --git a/test_git_cache.py b/test_git_cache.py index 2990f56..7cd232d 100644 --- a/test_git_cache.py +++ b/test_git_cache.py @@ -56,7 +56,8 @@ class TestGitCache(unittest.TestCase): 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: