Re: [PATCH v4 3/9] submodule: fall back to remote's HEAD for missing remote.<name>.branch
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jun 24, 2020, 16:17 UTC
- Message-ID
- <xmqqv9jg780w.fsf@gitster.c.googlers.com>
- In-Reply-To
- <54563642dbf96fcb36993c2c2d36ebefaf220cce.1593009996.git.gitgitgadget@gmail.com>
"Johannes Schindelin via GitGitGadget" <gitgitgadget@gmail.com> writes:
Show 16 quoted lines
> Even so, it should be okay to fix this behavior without anything like a > longer transition period: > > - The `git submodule update --remote` command is not really common. > > - Current Git's behavior when running this command is outright > confusing, unless the remote repository's current branch _is_ `master` > (in which case the proposed behavior matches the old behavior). > > - If a user encounters a regression due to the changed behavior, the fix > is actually trivial: setting `submodule.<name>.branch` to `master` > will reinstate the old behavior. > > Helped-by: Philippe Blain <levraiphilippeblain@gmail.com> > Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> > ---
Well explained. Thanks.