Re: bug report: mutual recursion in the git-subtree shell script
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Mar 15, 2021, 05:19 UTC
- Message-ID
- <nycvar.QRO.7.76.6.2103150616410.50@tvgsbejvaqbjf.bet>
- In-Reply-To
- <CAN7rbOuOaHY553KX1Qcr_XWGG6DFo1yUjdYVu5mn=HYPmOj6vQ@mail.gmail.com>
Hi,
On Sun, 14 Mar 2021, Arun Sharma wrote:
Show 25 quoted lines
> On Sat, Mar 13, 2021 at 9:03 AM brian m. carlson > <sandals@crustytoothpaste.net> wrote: > > > > I don't use git-subtree, but there's some additional information which > > would probably be helpful here to someone who does. What OS are you > > using, what version of Git, and what shell is the shell you have as > > /bin/sh (or, if you've compiled using a custom shell, the shell you're > > using for that)? > > Thanks for the hint. I was using ubuntu 20.04. > > $ git --version > git version 2.25.1 > > $ bash --version > GNU bash, version 5.0.16(1)-release (x86_64-pc-linux-gnu) > > To repro, you can try to split a week old version of: > > https://github.com/postgres/postgres (subtree: src/interfaces/libpq) > > It could take several minutes because of the size of the repo. > > And then try to pull the latest version and push the merged result > into the smaller subproject.
Without having had the time to read the bug report in detail (let alone the time to try to reproduce), I nevertheless got reminded of this PR: https://github.com/gitgitgadget/git/pull/493
The most recent iteration was sent here: https://lore.kernel.org/git/pull.493.v2.git.1602021913.gitgitgadget@gmail.com/
This patch series _might_ address the issue (IIRC it talked about removing a deep recursion). Arun, maybe you want to give it a swirl?
Ciao, Johannes