summaryrefslogtreecommitdiff
path: root/guix
diff options
context:
space:
mode:
authorXinglu Chen <public@yoctocell.xyz>2021-09-06 12:57:04 +0200
committerLudovic Courtès <ludo@gnu.org>2021-09-10 17:30:55 +0200
commit9875f9bca3976bf3576eab9be42164fde454597e (patch)
treefe3b64055eaa558fb481f01bad55b8f5643c2005 /guix
parent87da4163085b845e4537311b04ff23375d1932de (diff)
import: elpa: Don't hardcode default branch to 'master'.
Otherwise, remotes without a branch named 'master' will cause an error when importing. * guix/import/elpa (git-repository->origin): Fallback to HEAD instead of the 'master' branch. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'guix')
-rw-r--r--guix/import/elpa.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/guix/import/elpa.scm b/guix/import/elpa.scm
index fb59acc9e3..96ebc17af1 100644
--- a/guix/import/elpa.scm
+++ b/guix/import/elpa.scm
@@ -259,7 +259,7 @@ RECIPE."
((assoc-ref recipe #:commit)
=> (lambda (commit) (cons 'commit commit)))
(else
- '(branch . "master"))))
+ '())))
(let-values (((directory commit) (download-git-repository url ref)))
`(origin