浏览代码

Disable prompts on password-protected repos

tags/v1.0
JustAnotherArchivist 1年前
父节点
当前提交
42e420ad0d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      codearchiver/modules/git.py

+ 1
- 1
codearchiver/modules/git.py 查看文件

@@ -44,7 +44,7 @@ class Git(codearchiver.core.Module):
raise FileExistsError(f'{bundle!r} already exists')

logger.info(f'Cloning {self._url} into {directory}')
codearchiver.subprocess.run_with_log(['git', 'clone', '--verbose', '--mirror', self._url, directory])
codearchiver.subprocess.run_with_log(['git', 'clone', '--verbose', '--mirror', self._url, directory], env = {**os.environ, 'GIT_TERMINAL_PROMPT': '0'})

if self._extraBranches:
for branch, commit in self._extraBranches.items():


正在加载...
取消
保存