mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-20 10:34:30 +00:00
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:
parent
3f5035c6d5
commit
b3b2b6fe84
@ -474,7 +474,8 @@ def gitweb_repo_is_writable(repo, with_auth=False, url_git_extension=False):
|
|||||||
cwd = os.path.join(cwd, 'test-project')
|
cwd = os.path.join(cwd, 'test-project')
|
||||||
prepare_git_repo_commands = [
|
prepare_git_repo_commands = [
|
||||||
'git init -q', 'git config http.sslVerify false',
|
'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:
|
for command in prepare_git_repo_commands:
|
||||||
subprocess.run(command, shell=True, check=True, cwd=cwd)
|
subprocess.run(command, shell=True, check=True, cwd=cwd)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user