mirror of
https://github.com/goreleaser/goreleaser.git
synced 2024-12-27 01:33:39 +02:00
fix: typo in the git SSH command constant (#5287)
This commit is contained in:
parent
fac5e48c77
commit
ede5a9fea6
@ -22,8 +22,8 @@ import (
|
||||
|
||||
var gil sync.Mutex
|
||||
|
||||
// DefaulGitSSHCommand used for git over SSH.
|
||||
const DefaulGitSSHCommand = `ssh -i "{{ .KeyPath }}" -o StrictHostKeyChecking=accept-new -F /dev/null`
|
||||
// DefaultGitSSHCommand used for git over SSH.
|
||||
const DefaultGitSSHCommand = `ssh -i "{{ .KeyPath }}" -o StrictHostKeyChecking=accept-new -F /dev/null`
|
||||
|
||||
type gitClient struct {
|
||||
branch string
|
||||
@ -70,7 +70,7 @@ func (g *gitClient) CreateFiles(
|
||||
|
||||
sshcmd, err := tmpl.New(ctx).WithExtraFields(tmpl.Fields{
|
||||
"KeyPath": key,
|
||||
}).Apply(ordered.First(repo.GitSSHCommand, DefaulGitSSHCommand))
|
||||
}).Apply(ordered.First(repo.GitSSHCommand, DefaultGitSSHCommand))
|
||||
if err != nil {
|
||||
return fmt.Errorf("git: failed to template ssh command: %w", err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user