summaryrefslogtreecommitdiff
path: root/guix
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2018-09-17 22:02:31 +0200
committerLudovic Courtès <ludo@gnu.org>2018-09-17 22:10:31 +0200
commite83b2b0fdd2458242837b60d4da7f09802ca07a6 (patch)
tree10de5d5089944c52296fa8fbd0bc4ee0ce8f1210 /guix
parent3809824199cdd52446176c9cd4761dd09f732542 (diff)
downloadgnu-guix-e83b2b0fdd2458242837b60d4da7f09802ca07a6.tar
gnu-guix-e83b2b0fdd2458242837b60d4da7f09802ca07a6.tar.gz
git: Choose a saner default for '%repository-cache-directory'.
* guix/git.scm (%repository-cache-directory): Use 'cache-directory' by default unless running as root.
Diffstat (limited to 'guix')
-rw-r--r--guix/git.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/guix/git.scm b/guix/git.scm
index 3d0eb93d9b..d007916662 100644
--- a/guix/git.scm
+++ b/guix/git.scm
@@ -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