Browse Source

git: 'latest-repository-commit' calls 'repository-close!'.

* guix/git.scm (latest-repository-commit): Call 'repository-close!'
when it exists.
version-0.15.0
Ludovic Courtès 4 years ago
parent
commit
dfca24180c
No known key found for this signature in database GPG Key ID: 90B11993D9AEBB5
  1. 7
      guix/git.scm

7
guix/git.scm

@ -147,6 +147,13 @@ Git repositories are kept in the cache directory specified by
(when cache-exists?
(remote-fetch (remote-lookup repository "origin")))
(switch-to-ref repository ref)
;; Reclaim file descriptors and memory mappings associated with
;; REPOSITORY as soon as possible.
(when (module-defined? (resolve-interface '(git repository))
'repository-close!)
(repository-close! repository))
(copy-to-store store cache-dir
#:url url
#:repository repository))))
Loading…
Cancel
Save