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
|
@ -36,7 +36,8 @@
|
|||
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 New Issue