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>
This commit is contained in:
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

View File

@ -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