@@ -33,7 +33,7 @@ func gitssh() *cobra.Command {
33
33
defer stop ()
34
34
35
35
// Early check so errors are reported immediately.
36
- identityFiles , err := praseIdentityFilesForHost (ctx , args , env )
36
+ identityFiles , err := parseIdentityFilesForHost (ctx , args , env )
37
37
if err != nil {
38
38
return err
39
39
}
@@ -120,21 +120,21 @@ var fallbackIdentityFiles = strings.Join([]string{
120
120
"identityfile ~/.ssh/id_xmss" ,
121
121
}, "\n " )
122
122
123
- // praseIdentityFilesForHost uses ssh -G to discern what SSH keys have
123
+ // parseIdentityFilesForHost uses ssh -G to discern what SSH keys have
124
124
// been enabled for the host (via the users SSH config) and returns a
125
125
// list of existing identity files.
126
126
//
127
127
// We do this because when no keys are defined for a host, SSH uses
128
128
// fallback keys (see above). However, by passing `-i` to attach our
129
129
// private key, we're effectively disabling the fallback keys.
130
130
//
131
- // Example invokation :
131
+ // Example invocation :
132
132
//
133
133
// ssh -G -o SendEnv=GIT_PROTOCOL [email protected] git-upload-pack 'coder/coder'
134
134
//
135
135
// The extra arguments work without issue and lets us run the command
136
136
// as-is without stripping out the excess (git-upload-pack 'coder/coder').
137
- func praseIdentityFilesForHost (ctx context.Context , args , env []string ) (identityFiles []string , error error ) {
137
+ func parseIdentityFilesForHost (ctx context.Context , args , env []string ) (identityFiles []string , error error ) {
138
138
home , err := os .UserHomeDir ()
139
139
if err != nil {
140
140
return nil , xerrors .Errorf ("get user home dir failed: %w" , err )
0 commit comments