(hostname, username, authToken string)
| 78 | } |
| 79 | |
| 80 | func (flow *GitCredentialFlow) Setup(hostname, username, authToken string) error { |
| 81 | // If there is no credential helper configured then we will set ourselves up as |
| 82 | // the credential helper for this host. |
| 83 | if !flow.helper.IsConfigured() { |
| 84 | return flow.HelperConfig.ConfigureOurs(hostname) |
| 85 | } |
| 86 | |
| 87 | // Otherwise, we'll tell git to inform the existing credential helper of the new credentials. |
| 88 | return flow.Updater.Update(hostname, username, authToken) |
| 89 | } |