Am Fr., 16. Aug. 2024 um 20:51 Uhr schrieb Collin Funk < collin.fu...@gmail.com>:
> Hi Marc, > > Marc Nieper-Wißkirchen <marc.nieper+...@gmail.com> writes: > > > ./gitsub.sh upgrade > > > > fails when submodules are present where the master branch is not called > > "master" but something else, e.g. "main", which becomes increasingly > common. > > > > The branch name "origin/master" is currently hardcoded in gitsub.sh. > > It would be nice to cover both "master" and "main". I think that would > cover 99% percent of cases. > I am not an expert in git, but here is some information that will hopefully make it work even in cases where the branch is called, say, "develop" or "stable": https://stackoverflow.com/questions/28666357/how-to-get-default-git-branch/50056710#50056710 Best, Marc