Authentication
This commit is contained in:
@@ -106,13 +106,19 @@
|
||||
(with-handlers
|
||||
((exn:fail:git-auth?
|
||||
(λ (e)
|
||||
(if (and authentication-retry?
|
||||
((current-git-authentication-handler) cmd nargs e))
|
||||
(retry #f)
|
||||
(git-error cmd
|
||||
(format "Exitcode <> 0: ~a"
|
||||
(exn:fail:git-auth-exit-code e))
|
||||
(exn:fail:git-auth-output e))))))
|
||||
(if authentication-retry?
|
||||
(if ((current-git-authentication-handler) cmd nargs e)
|
||||
(retry #f)
|
||||
(git-error cmd
|
||||
(format "Exitcode <> 0: ~a"
|
||||
(exn:fail:git-auth-exit-code e))
|
||||
(exn:fail:git-auth-output e)))
|
||||
(begin
|
||||
(reject-git-authentication cmd nargs)
|
||||
(git-error cmd
|
||||
(format "Exitcode <> 0: ~a"
|
||||
(exn:fail:git-auth-exit-code e))
|
||||
(exn:fail:git-auth-output e)))))))
|
||||
(let-values (((exit-code output) (run-git (cons cmd nargs))))
|
||||
(when (authentication-failure? exit-code output)
|
||||
(raise-git-auth-error cmd nargs exit-code output))
|
||||
|
||||
Reference in New Issue
Block a user