mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-28 08:03:36 +00:00
gitweb: tests: functional: Fix test failure if initial default branch is not master
Closes #2101. Signed-off-by: Veiko Aasa <veiko17@disroot.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
00be64036a
commit
c5c1f5594d
@ -301,8 +301,9 @@ def _repo_is_writable(repo, with_auth=False):
|
||||
with _gitweb_temp_directory() as temp_directory:
|
||||
repo_directory = os.path.join(temp_directory, 'test-project')
|
||||
_create_local_repo(repo_directory)
|
||||
git_push_command = ['git', 'push', '-qf', url, 'master']
|
||||
|
||||
git_push_command = [
|
||||
'git', '-c', 'push.default=current', 'push', '-qf', url
|
||||
]
|
||||
return _gitweb_git_command_is_successful(git_push_command,
|
||||
repo_directory)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user