diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2014-06-13 00:40:43 +0400 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2014-06-13 01:47:23 +0400 |
commit | 7765c12cf3315a0d8c3d28f61a261510abf348e2 (patch) | |
tree | 870d9b6a001614dc51e0f961dbf125873c4e3ecb /LibGit2Sharp/Repository.cs | |
parent | 5dab358ef900426abcf7e9f44713e0f41e995a7d (diff) |
Use a callback for credentials
Instead of making the user choose beforehand, use a callback to let the
user ask a database or human about the credentials.
If desired, a hard-coded value can still be provided via a lambda, e.g.
(_url, _user, _types) => new UsernamePasswordCredentials() { ... }
Diffstat (limited to 'LibGit2Sharp/Repository.cs')
-rw-r--r-- | LibGit2Sharp/Repository.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/LibGit2Sharp/Repository.cs b/LibGit2Sharp/Repository.cs index b5bc2bfa..b1ebf614 100644 --- a/LibGit2Sharp/Repository.cs +++ b/LibGit2Sharp/Repository.cs @@ -545,7 +545,7 @@ namespace LibGit2Sharp { var gitCheckoutOptions = checkoutOptionsWrapper.Options; - var remoteCallbacks = new RemoteCallbacks(null, options.OnTransferProgress, null, options.Credentials); + var remoteCallbacks = new RemoteCallbacks(null, options.OnTransferProgress, null, options.CredentialsProvider); var gitRemoteCallbacks = remoteCallbacks.GenerateCallbacks(); var cloneOpts = new GitCloneOptions |