diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2018-09-17 22:02:31 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2018-09-17 22:10:31 +0200 |
| commit | e83b2b0fdd2458242837b60d4da7f09802ca07a6 (patch) | |
| tree | 10de5d5089944c52296fa8fbd0bc4ee0ce8f1210 | |
| parent | 3809824199cdd52446176c9cd4761dd09f732542 (diff) | |
git: Choose a saner default for '%repository-cache-directory'.
* guix/git.scm (%repository-cache-directory): Use 'cache-directory'
by default unless running as root.
| -rw-r--r-- | guix/git.scm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/guix/git.scm b/guix/git.scm index 3d0eb93d9b0..d0079166622 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 |
