aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac2022-06-14 14:30:14 +0530
committerArun Isaac2022-06-14 14:30:14 +0530
commiteb6ac8d41ae178b3147165a00882d37e40951cbc (patch)
tree7f30ceb32aed9b463505382e7cc7703907aee90e
parent1ed8185e53c1e7aa75e2c418b28d522e6fc6b981 (diff)
downloadgn-machines-eb6ac8d41ae178b3147165a00882d37e40951cbc.tar.gz
Reassure git that the gn-gemtext-threads source directory is safe.
* genenetwork/development-helper.scm (tissue-website-gexp): Reassure git that the gn-gemtext-threads source directory is safe. * genenetwork-development.scm (gn-gemtext-threads-website): Add git-minimal to manifest.
-rw-r--r--genenetwork-development.scm2
-rw-r--r--genenetwork/development-helper.scm6
2 files changed, 7 insertions, 1 deletions
diff --git a/genenetwork-development.scm b/genenetwork-development.scm
index c344dc5..fe8313e 100644
--- a/genenetwork-development.scm
+++ b/genenetwork-development.scm
@@ -636,7 +636,7 @@ command to be executed."
tissue-website-gexp)
source-checkout
#$(profile
- (content (packages->manifest (list tissue)))
+ (content (packages->manifest (list git-minimal tissue)))
(allow-collisions? #t)))))
#:guix-daemon-uri %guix-daemon-uri
#:deep-clone? #t)))))
diff --git a/genenetwork/development-helper.scm b/genenetwork/development-helper.scm
index e8364ef..d2d905b 100644
--- a/genenetwork/development-helper.scm
+++ b/genenetwork/development-helper.scm
@@ -156,4 +156,10 @@ SOURCE. PROFILE is a profile with necessary dependencies."
(use-modules (guix build utils))
(chdir #$source)
+ ;; Set HOME so that we can write to ~/.gitconfig.
+ (setenv "HOME" "/tmp")
+ ;; The source directory is owned by root, and not the
+ ;; laminar user. So, we need to reassure git that it is
+ ;; safe.
+ (invoke "git" "config" "--global" "--add" "safe.directory" #$source)
(invoke "tissue" "web" #$output)))))