File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
asyncgit/src/sync/remotes Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 1+ #![ allow( unused_imports, unused) ]
12use super :: push:: ProgressNotification ;
23use crate :: { error:: Result , sync:: cred:: BasicAuthCredential } ;
34use crossbeam_channel:: Sender ;
@@ -83,11 +84,13 @@ impl Callbacks {
8384 let this = self . clone ( ) ;
8485 callbacks. credentials (
8586 move |url, username_from_url, allowed_types| {
86- this. credentials (
87+ let cred = this. credentials (
8788 url,
8889 username_from_url,
8990 allowed_types,
90- )
91+ ) ;
92+ // log::debug!("{:?}", &cred);
93+ cred
9194 } ,
9295 ) ;
9396
@@ -193,7 +196,7 @@ impl Callbacks {
193196 allowed_types
194197 ) ;
195198
196- // This boolean is used to avoid multiple calls to credentials callback.
199+ // // This boolean is used to avoid multiple calls to credentials callback.
197200 if self . first_call_to_credentials . load ( Ordering :: Relaxed ) {
198201 self . first_call_to_credentials
199202 . store ( false , Ordering :: Relaxed ) ;
You can’t perform that action at this time.
0 commit comments