1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-12-06 18:34:48 +01:00

Allow git in git-obs to be switched from SSH to http(s)

This commit is contained in:
2025-06-18 13:51:32 +02:00
parent c5193f1187
commit 78066f8e70
7 changed files with 113 additions and 1 deletions

View File

@@ -64,7 +64,7 @@ class RepoCloneCommand(osc.commandline_git.GitObsCommand):
owner,
repo,
directory=args.directory,
use_http=args.anonymous,
use_http=args.anonymous or self.gitea_login.git_uses_http,
add_remotes=True,
ssh_private_key_path=args.ssh_key or self.gitea_login.ssh_key,
ssh_strict_host_key_checking=not(args.no_ssh_strict_host_key_checking),