Kyle Meyer skriver: > Ricardo Wurmus writes: > >> Importing https://github.com/immunogenomics/scpost with the CRAN >> importer fails, because the git repository does not have an >> origin/master branch. This repository only has a “main” branch. >> >> Arguably, this shouldn’t matter, but (guix git) has the “master” name >> set up as the default. When cloning a repository it may be better to >> fetch everything and select the default branch — whichever name it may >> have. > > One option may be to use the remote HEAD symref. That's probably the > best indicator of what the primary branch is. In a clone, it doesn't > necessarily match HEAD on the remote, because users may change it to > another branch they're interested in, but that isn't really relevant to > these behind-the-scenes checkouts. > > Here's a quick and dirty demo that makes your reproducer work. A real > patch in this direction would of course look very different. Another quick and dirty patch to make this specific example work ...