Re: git submodule update --init breaks if run twice in parallel
- From
Taylor Blau <me@ttaylorr.com>
- Date
- Oct 16, 2024, 19:35 UTC
- Message-ID
- <ZxAVlDuT3IFajqFp@nand.local>
- In-Reply-To
- <CAH08wSh7Jzn-RoziaEM3mDcEEQqcnKpnrSZKPTD9yn9BmZgQxw@mail.gmail.com>
On Wed, Oct 16, 2024 at 03:49:02PM -0300, Germán Ferrero wrote:
> Sorry, it also happens on version 2.44.1, It just seems less likely. > But if you try enough times you will get the same error. > > I guess this is just the way it's supposed to work, and there's nothing to fix.
Yeah, I suppose the error message:
> > error: could not lock config file > > /path/to/my/repo/.git/modules/path/to/my/module/config: File exists > > fatal: could not set 'core.worktree' to '../../../../modules/path/to/my/module'
could be a little friendlier, but I agree that this appears to be working as expected.
Thanks, Taylor