diff options
author | Xinglu Chen <public@yoctocell.xyz> | 2021-09-06 12:57:04 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2021-09-10 17:30:55 +0200 |
commit | 9875f9bca3976bf3576eab9be42164fde454597e (patch) | |
tree | fe3b64055eaa558fb481f01bad55b8f5643c2005 /guix | |
parent | 87da4163085b845e4537311b04ff23375d1932de (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.scm | 2 |
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 |