guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

09/09: import: elpa: Don't hardcode default branch to 'master'.


From: guix-commits
Subject: 09/09: import: elpa: Don't hardcode default branch to 'master'.
Date: Fri, 10 Sep 2021 11:31:27 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit 9875f9bca3976bf3576eab9be42164fde454597e
Author: Xinglu Chen <public@yoctocell.xyz>
AuthorDate: Mon Sep 6 12:57:04 2021 +0200

    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>
---
 guix/import/elpa.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/guix/import/elpa.scm b/guix/import/elpa.scm
index fb59acc..96ebc17 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]