mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 23:46:13 -05:00
git: Choose a saner default for '%repository-cache-directory'.
* guix/git.scm (%repository-cache-directory): Use 'cache-directory' by default unless running as root.
This commit is contained in:
parent
3809824199
commit
e83b2b0fdd
1 changed files with 2 additions and 1 deletions
|
@ -36,7 +36,8 @@ (define-module (guix git)
|
|||
latest-repository-commit))
|
||||
|
||||
(define %repository-cache-directory
|
||||
(make-parameter "/var/cache/guix/checkouts"))
|
||||
(make-parameter (string-append (cache-directory #:ensure? #f)
|
||||
"/checkouts")))
|
||||
|
||||
(define-syntax-rule (with-libgit2 thunk ...)
|
||||
(begin
|
||||
|
|
Loading…
Reference in a new issue