git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git submodule update --init breaks if run twice in parallel
@ 2024-10-16 13:07 Germán Ferrero
  2024-10-16 18:49 ` Germán Ferrero
  0 siblings, 1 reply; 3+ messages in thread
From: Germán Ferrero @ 2024-10-16 13:07 UTC (permalink / raw)
  To: git

Thank you for filling out a Git bug report!
Please answer the following questions to help us understand your issue.

What did you do before the bug happened? (Steps to reproduce your issue)
git submodule update --init & git submodule update --init

What did you expect to happen? (Expected behavior)
Something like:
[1] 334031
[1]+ Done git submodule update --init

What happened instead? (Actual behavior)
[1] 333889
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'

What's different between what you expected and what actually happened?
The difference is that in the expected behavior (working up to git
2.44.1 at least),
I got no error by running in parallel git submodules update --init.

Anything else you want to add:
In our scenario git submodules update --init is command run by tasks
that are schedulled
potentially in parallel.

Please review the rest of the bug report below.
You can delete any lines you don't wish to share.


[System Info]
git version:
git version 2.46.0
cpu: x86_64
no commit associated with this build
sizeof-long: 8
sizeof-size_t: 8
shell-path: /nix/store/izpf49b74i15pcr9708s3xdwyqs4jxwl-bash-5.2p32/bin/bash
libcurl: 8.9.1
OpenSSL: OpenSSL 3.0.14 4 Jun 2024
zlib: 1.3.1
uname: Linux 6.8.4-2-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.4-2
(2024-04-10T17:36Z) x86_64
compiler info: gnuc: 13.3
libc info: glibc: 2.39
$SHELL (typically, interactive shell):
/nix/store/izpf49b74i15pcr9708s3xdwyqs4jxwl-bash-5.2p32/bin/bash


[Enabled Hooks]


-- 
Germán Francisco Ferrero.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-10-16 19:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-16 13:07 git submodule update --init breaks if run twice in parallel Germán Ferrero
2024-10-16 18:49 ` Germán Ferrero
2024-10-16 19:35   ` Taylor Blau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).