mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
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:
parent
e025de68c3
commit
973b8af725
1 changed files with 5 additions and 7 deletions
12
guix/git.scm
12
guix/git.scm
|
@ -185,10 +185,9 @@ (define (clone* url directory)
|
|||
(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 @@ (define canonical-ref
|
|||
;; 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))
|
||||
|
||||
|
|
Loading…
Reference in a new issue