gitweb: Fix functional tests if git user and email is not configured

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Veiko Aasa 2020-01-27 10:32:18 +02:00 committed by Sunil Mohan Adapa
parent 3f5035c6d5
commit b3b2b6fe84
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -474,7 +474,8 @@ def gitweb_repo_is_writable(repo, with_auth=False, url_git_extension=False):
cwd = os.path.join(cwd, 'test-project')
prepare_git_repo_commands = [
'git init -q', 'git config http.sslVerify false',
'git commit -q --allow-empty --author "Tester <>" -m "test"'
'git -c "user.name=Tester" -c "user.email=tester" '
'commit -q --allow-empty -m "test"'
]
for command in prepare_git_repo_commands:
subprocess.run(command, shell=True, check=True, cwd=cwd)