[RFE] Automatically detect the default branch of a module
Description
There's a desire to rename the default development branch of various GNOME modules from "master" to "main". Currently this process is done manually, requiring changes in various places, including here in damned-lies.
Proposal
git provides APIs to detect the default branch of a repository, meaning that the name of the default branch is irrelevant if this API is used.
With git ls-remote --symref origin HEAD
one can query for the default branch of a remote repository.
Therefore, Damnned Lies should be capable of picking up the default branch of a module without the need to hardcode the branch name.
Links / references
Edited by Felipe Borges