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)
1) Run git fetch --prune --tags --prune-tags
2) Lose internet connection (in the MRE video below we turn it off via nmcli)
3) See that git fetch does not return while internet is lost
4) Regain internet connection
Please answer the following questions to help us understand your issue.
What did you do before the bug happened? (Steps to reproduce your issue)
1) Run git fetch --prune --tags --prune-tags
2) Lose internet connection (in the MRE video below we turn it off via nmcli)
3) See that git fetch does not return while internet is lost
4) Regain internet connection
5) Git fetch does not return after connection has been regained. Can hang indefinitely.
What did you expect to happen? (Expected behavior)
The behavior with the --prune --tags and --prune-tags flags differs from git fetch with no flags.
Running the same process with `git fetch` we see that it will return quickly after the internet has been restored.
I expect the git fetch --tags --prune --prune-tags to return quickly when internet is restored and not hang indefinitely.
What happened instead? (Actual behavior)
The git fetch process will hang indefinitely.
What's different between what you expected and what actually happened?
One can hang forever and one has expected return behavior.
[System Info]
git version:
git version 2.43.0
cpu: x86_64
uname: Linux 6.11.0-26-generic #26~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Apr 17 19:20:47 UTC 2 x86_64
compiler info: gnuc: 13.3
libc info: glibc: 2.39
$SHELL (typically, interactive shell): /bin/bash
-- What did you expect to happen? (Expected behavior)
The behavior with the --prune --tags and --prune-tags flags differs from git fetch with no flags.
Running the same process with `git fetch` we see that it will return quickly after the internet has been restored.
I expect the git fetch --tags --prune --prune-tags to return quickly when internet is restored and not hang indefinitely.
What happened instead? (Actual behavior)
The git fetch process will hang indefinitely.
What's different between what you expected and what actually happened?
One can hang forever and one has expected return behavior.
[System Info]
git version:
git version 2.43.0
cpu: x86_64
uname: Linux 6.11.0-26-generic #26~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Apr 17 19:20:47 UTC 2 x86_64
compiler info: gnuc: 13.3
libc info: glibc: 2.39
$SHELL (typically, interactive shell): /bin/bash
Attachment:
git-fetch-no-hang.mp4
Description: video/mp4
Attachment:
git_fetch_prune_tags_hanging_example.mp4
Description: video/mp4