1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-20 17:20:32 +02:00

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

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