Skip to content
This repository was archived by the owner on May 20, 2026. It is now read-only.
This repository was archived by the owner on May 20, 2026. It is now read-only.

Try main branch if master is not found #32

@countvajhula

Description

@countvajhula

There are occasionally issues related to the use of main on GitHub instead of the older master convention. For example, the racquel package currently shows this error:

Checksum error An error occurred while updating the package checksum.

git: could not find requested reference
  reference: master
  repo: brown131/racquel
  context...:
   /home/pkgserver/racket/collects/net/git-checkout.rkt:403:0: select-commits
   /home/pkgserver/racket/collects/net/git-checkout.rkt:73:8
   /home/pkgserver/racket/collects/net/git-checkout.rkt:54:2: retry-loop
   /home/pkgserver/pkg-index/official/update.rkt:31:2
   /home/pkgserver/racket/collects/racket/private/list.rkt:255:2: filter
   /home/pkgserver/pkg-index/official/update.rkt:163:0: do-update!
   /home/pkgserver/pkg-index/official/common.rkt:150:0: run!
   /home/pkgserver/pkg-index/official/update.rkt:174:0: run-update!

At the moment, not explicitly indicating a branch name is treated as indicating master. Instead, it could try some standard names in order, stopping when one is found. For now this could include just main and master, and if it emerges that other services use a different main branch name, those could be added to this list.

Of course, an explicitly indicated branch name would override this default mechanism.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions