Hi Marc,
Marc Nieper-Wißkirchen <marc.nieper+gnu@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":