Skip to content

Commit b8a4c32

Browse files
committed
ref(builder): fix capitalization
1 parent c1a419c commit b8a4c32

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

pkg/controller/utils.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const (
2222
type UserInfo struct {
2323
Username string
2424
Key string
25-
FingerPrint string
25+
Fingerprint string
2626
Apps []string
2727
}
2828

@@ -98,6 +98,6 @@ func UserInfoFromKey(key ssh.PublicKey) (*UserInfo, error) {
9898
if err := json.NewDecoder(res.Body).Decode(ret); err != nil {
9999
return nil, err
100100
}
101-
ret.FingerPrint = fp
101+
ret.Fingerprint = fp
102102
return ret, nil
103103
}

pkg/git/git.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func Receive(c cookoo.Context, p *cookoo.Params) (interface{}, cookoo.Interrupt)
6565
gitHome := p.Get("gitHome", "/home/git").(string)
6666
userinfo := p.Get("userinfo", nil).(*controller.UserInfo)
6767

68-
log.Debugf(c, "receiving git repo name: %s, operation: %s, fingerprint: %s, user: %s", repoName, operation, userinfo.FingerPrint, userinfo.Username)
68+
log.Debugf(c, "receiving git repo name: %s, operation: %s, fingerprint: %s, user: %s", repoName, operation, userinfo.Fingerprint, userinfo.Username)
6969

7070
repo, err := cleanRepoName(repoName)
7171
if err != nil {
@@ -104,7 +104,7 @@ func Receive(c cookoo.Context, p *cookoo.Params) (interface{}, cookoo.Interrupt)
104104
cmd.Env = []string{
105105
fmt.Sprintf("RECEIVE_USER=%s", userinfo.Username),
106106
fmt.Sprintf("RECEIVE_REPO=%s", repo),
107-
fmt.Sprintf("RECEIVE_FINGERPRINT=%s", userinfo.FingerPrint),
107+
fmt.Sprintf("RECEIVE_FINGERPRINT=%s", userinfo.Fingerprint),
108108
fmt.Sprintf("SSH_ORIGINAL_COMMAND=%s '%s'", operation, repo),
109109
fmt.Sprintf("SSH_CONNECTION=%s", c.Get("SSH_CONNECTION", "0 0 0 0").(string)),
110110
}

0 commit comments

Comments
 (0)