git: Remove unused variables.

This is a followup to 298f9d29d6, which
left those variables despite being unnecessary.

* guix/git.scm (clone*, update-cached-checkout): Remove unused
'auth-method' variable.
This commit is contained in:
Ludovic Courtès 2021-04-02 10:30:07 +02:00
parent e025de68c3
commit 973b8af725
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 5 additions and 7 deletions

View File

@ -185,10 +185,9 @@ make sure no empty directory is left behind."
(lambda ()
(mkdir-p directory)
(let ((auth-method (%make-auth-ssh-agent)))
(clone url directory
(make-clone-options
#:fetch-options (make-default-fetch-options)))))
(clone url directory
(make-clone-options
#:fetch-options (make-default-fetch-options))))
(lambda _
(false-if-exception (rmdir directory)))))
@ -389,9 +388,8 @@ it unchanged."
;; Only fetch remote if it has not been cloned just before.
(when (and cache-exists?
(not (reference-available? repository ref)))
(let ((auth-method (%make-auth-ssh-agent)))
(remote-fetch (remote-lookup repository "origin")
#:fetch-options (make-default-fetch-options))))
(remote-fetch (remote-lookup repository "origin")
#:fetch-options (make-default-fetch-options)))
(when recursive?
(update-submodules repository #:log-port log-port))