1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-21 01:32:10 +01:00

Fix ssh key priority in 'git-obs repo clone' command

This commit is contained in:
Daniel Mach 2025-01-14 16:02:33 +01:00
parent 57d8254122
commit 166cadb31b

View File

@ -54,6 +54,6 @@ class RepoCloneCommand(osc.commandline_git.GitObsCommand):
directory=args.directory,
anonymous=args.anonymous,
add_remotes=True,
ssh_private_key_path=self.gitea_login.ssh_key or args.ssh_key,
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),
)