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 authored and Sunil Mohan Adapa committed 2020-01-27 14:41:16 -08:00
1 parent 3f5035c6d5
commit b3b2b6fe84
1 file changed
+2 -1
+2 -1
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)