me
/
guix
Archived
1
0
Fork 0

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>
master
Xinglu Chen 2021-09-06 12:57:04 +02:00 committed by Ludovic Courtès
parent 87da416308
commit 9875f9bca3
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 1 additions and 1 deletions

View File

@ -259,7 +259,7 @@ RECIPE."
((assoc-ref recipe #:commit) ((assoc-ref recipe #:commit)
=> (lambda (commit) (cons 'commit commit))) => (lambda (commit) (cons 'commit commit)))
(else (else
'(branch . "master")))) '())))
(let-values (((directory commit) (download-git-repository url ref))) (let-values (((directory commit) (download-git-repository url ref)))
`(origin `(origin