Skip to content

Commit

Permalink
git config doesn't work, try git -c
Browse files Browse the repository at this point in the history
  • Loading branch information
mgedmin committed Oct 22, 2022
1 parent 227fb10 commit 3fc1989
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -1069,7 +1069,6 @@ def _init_vcs(self):
self._run('git', 'init')
self._run('git', 'config', 'user.name', 'Unit Test')
self._run('git', 'config', 'user.email', 'test@example.com')
self._run('git', 'config', 'protocol.file.allow', 'always')

def _add_to_vcs(self, filenames):
# Note that we use --force to prevent errors when we want to
Expand All @@ -1094,7 +1093,8 @@ def _init_repo_with_files(self, dirname, filenames):

def _add_submodule(self, repo, subdir, subrepo):
os.chdir(repo)
self.vcs._run('git', 'submodule', 'add', subrepo, subdir)
self.vcs._run('git', '-c', 'protocol.file.allow=always',
'submodule', 'add', subrepo, subdir)
self._commit()
os.chdir(self.tmpdir)

Expand Down

0 comments on commit 3fc1989

Please sign in to comment.