From 166cadb31bd33d4f51cafd4798d5472d5fe412f4 Mon Sep 17 00:00:00 2001 From: Daniel Mach Date: Tue, 14 Jan 2025 16:02:33 +0100 Subject: [PATCH] Fix ssh key priority in 'git-obs repo clone' command --- osc/commands_git/repo_clone.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osc/commands_git/repo_clone.py b/osc/commands_git/repo_clone.py index 8443f041..d4d00b96 100644 --- a/osc/commands_git/repo_clone.py +++ b/osc/commands_git/repo_clone.py @@ -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), )