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