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

Bug report: parallel fetch tries to unlock SSH keys over and over again

From
PRPerez-Lopez Áron Ricardo <perez.aron@gmail.com>
Date
Jan 24, 2025, 19:46 UTC
Message-ID
<CAL_k5jZkYG0evQ2L+bCNvPAnePj=WdU-36GujfjRDwm3iX8ynQ@mail.gmail.com>

What did you do before the bug happened? (Steps to reproduce your issue) git fetch --all --tags --prune --jobs=10

What did you expect to happen? (Expected behavior) Being asked for the password of my SSH key, then git updating all of the remotes.

What happened instead? (Actual behavior) I get asked for my SSH key many times over, and the fetch does not succeed.

What's different between what you expected and what actually happened? I should only be asked to unlock my SSH key once. All fetch jobs should wait for this and then use the unlocked (cached) key.

Anything else you want to add: If I do just `git fetch` and unlock my key (once), it does get added to the SSH agent properly, and afterwards I can execute the command above with no issues.

[System Info]
git version:
git version 2.48.1
cpu: x86_64
no commit associated with this build
sizeof-long: 8
sizeof-size_t: 8
shell-path: /bin/sh
libcurl: 8.11.1
OpenSSL: OpenSSL 3.4.0 22 Oct 2024
zlib: 1.3.1
uname: Linux 6.12.10-arch1-1 #1 SMP PREEMPT_DYNAMIC Sat, 18 Jan 2025
02:26:57 +0000 x86_64
compiler info: gnuc: 14.2
libc info: glibc: 2.40
$SHELL (typically, interactive shell): /bin/bash
[Enabled Hooks]
Next: rsbecker@nexbridge.com
Message 1 of 4 in “Bug report: parallel fetch tries to unlock SSH keys over and over again”
  1. Perez-Lopez Áron RicardoJan 24, 2025
  2. rsbecker@nexbridge.comJan 24, 2025
  3. Junio C HamanoJan 24, 2025
  4. brian m. carlsonJan 24, 2025

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.