git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

Previous: Germán Ferrero
Message 3 of 3 in “git submodule update --init breaks if run twice in parallel”
  1. Germán FerreroOct 16, 2024
  2. Germán FerreroOct 16, 2024
  3. Taylor BlauOct 16, 2024

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.