Skip to content

Commit

Permalink
fix: enclose in quotes the GPG key identifier in gpg-agent setup
Browse files Browse the repository at this point in the history
  • Loading branch information
shdwchn10 authored and pascalbreuninger committed Feb 3, 2025
1 parent d6b5b2a commit 43bb55c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ func (cmd *SSHCmd) setupGPGAgent(
if len(gitGpgKey) > 0 {
gitKey := strings.TrimSpace(string(gitGpgKey))
forwardAgent = append(forwardAgent, "--gitkey")
forwardAgent = append(forwardAgent, gitKey)
forwardAgent = append(forwardAgent, fmt.Sprintf("'%s'", gitKey))
}

command := strings.Join(forwardAgent, " ")
Expand Down

0 comments on commit 43bb55c

Please sign in to comment.