bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gitsub.sh hardcodes origin/master


From: Marc Nieper-Wißkirchen
Subject: Re: gitsub.sh hardcodes origin/master
Date: Fri, 16 Aug 2024 20:57:36 +0200

Am Fr., 16. Aug. 2024 um 20:51 Uhr schrieb Collin Funk <collin.funk1@gmail.com>:
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":

 
Best,

Marc

reply via email to

[Prev in Thread] Current Thread [Next in Thread]