New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--jobs=0 no longer does any work #4302
Comments
For completeness: This has also been reported on the mailing list.
Ok, that's a starting point where to look. Looks like Ævar added the |
prior to 51243f9 (run-command API: don't fall back on online_cpus(), 2022-10-12) `git fetch --multiple --jobs=0` would coose some default amount of jobs, similar to `git -c fetch.parallel=0 fetch --multiple`. While our documentation only ever promised that `fetch.parallel` would fall back to a "sensible default", it makes sense to do the same for `--jobs`. So fall back to online_cpus() and not BUG() out. This fixes git-for-windows#4302 Reported-by: Drew Noakes <drnoakes@microsoft.com> Signed-off-by: Matthias Aßhauer <mha1993@live.de>
prior to 51243f9 (run-command API: don't fall back on online_cpus(), 2022-10-12) `git fetch --multiple --jobs=0` would choose some default amount of jobs, similar to `git -c fetch.parallel=0 fetch --multiple`. While our documentation only ever promised that `fetch.parallel` would fall back to a "sensible default", it makes sense to do the same for `--jobs`. So fall back to online_cpus() and not BUG() out. This fixes git-for-windows#4302 Reported-by: Drew Noakes <drnoakes@microsoft.com> Signed-off-by: Matthias Aßhauer <mha1993@live.de>
@rimrul since you seem to be almost there anyway, I added you as assignee, okay? |
yes. I've submitted the patch to the mailing list. |
The fix has not made it in time for Git |
(Note that I did report this on the git mailing list here, but no response was received.)
Setup
defaults?
to the issue you're seeing?
Not that I know of.
Details
Git Bash
Minimal, Complete, and Verifiable example
this will help us understand the issue.
Fetches from my multiple remotes to occur concurrently.
Nothing was fetched.
Yesterday, nothing was logged. Today I see an error message (no idea what changed):
Note also:
The git-config documentation says of zero jobs in "fetch.parallel" that "A value of 0 will give some reasonable default. If unset, it defaults to 1.".
This started happening after I updated my version of Git for Windows earlier today.
Excluding the --jobs argument or passing a non-zero value works as expected.
If the problem was occurring with a specific repository, can you provide the
URL to that repository to help us with testing?
Doesn't seem related to a specific repo.
The text was updated successfully, but these errors were encountered: