# --jobs=0 no longer does any work

3 messages from 2023-02-17 to 2023-03-27. Participants: Drew Noakes, Johannes Schindelin.
Thread: https://gitlist.dev/t/59259

## Drew Noakes, 2023-02-17 01:54

Subject: --jobs=0 no longer does any work
Message-ID: <PSAP153MB03910458707331B64FA7460DCAA19@PSAP153MB0391.APCP153.PROD.OUTLOOK.COM>
URL: https://gitlist.dev/e/PSAP153MB03910458707331B64FA7460DCAA19%40PSAP153MB0391.APCP153.PROD.OUTLOOK.COM

```
What did you do before the bug happened? (Steps to reproduce your issue)

- Enter a repo with multiple remotes
- Run: git fetch --all --prune --jobs=0

What did you expect to happen? (Expected behavior)

- Multiple remotes to be fetched in parallel

What happened instead? (Actual behavior)

- Nothing fetched and command exits quickly with no output

What's different between what you expected and what actually happened?

- That command used to work correctly. It now does nothing.

Anything else you want to add:

- 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.

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.39.2.windows.1
cpu: x86_64
built from commit: a82fa99b36ddfd643e61ed45e52abe314687df67
sizeof-long: 4
sizeof-size_t: 8
shell-path: /bin/sh
feature: fsmonitor--daemon
uname: Windows 10.0 22621 
compiler info: gnuc: 12.2
libc info: no libc information available
$SHELL (typically, interactive shell): C:\Program Files\Git\usr\bin\bash.exe

[Enabled Hooks]


```

## Johannes Schindelin, 2023-03-27 09:19

Subject: Re: --jobs=0 no longer does any work
Message-ID: <ed63b919-eb3a-1aae-0746-1ff582890a28@gmx.de>
URL: https://gitlist.dev/e/ed63b919-eb3a-1aae-0746-1ff582890a28%40gmx.de
In-Reply-To: <PSAP153MB03910458707331B64FA7460DCAA19@PSAP153MB0391.APCP153.PROD.OUTLOOK.COM>

```
Hi Drew,

On Fri, 17 Feb 2023, Drew Noakes wrote:

> What did you do before the bug happened? (Steps to reproduce your issue)
>
> - Enter a repo with multiple remotes
> - Run: git fetch --all --prune --jobs=0
>
> What did you expect to happen? (Expected behavior)
>
> - Multiple remotes to be fetched in parallel
>
> What happened instead? (Actual behavior)
>
> - Nothing fetched and command exits quickly with no output
>
> What's different between what you expected and what actually happened?
>
> - That command used to work correctly. It now does nothing.

This should be fixed via
https://github.com/git/git/commit/d180cc297922569e530da843bee4df3964167dea
which made it into v2.40.0, unless I am mistaken. Could you verify?

Ciao,
Johannes

```

## Drew Noakes, 2023-03-27 12:16

Subject: Re: --jobs=0 no longer does any work
Message-ID: <PSAP153MB0391861D0B15BBA22D7D6E2CCA8B9@PSAP153MB0391.APCP153.PROD.OUTLOOK.COM>
URL: https://gitlist.dev/e/PSAP153MB0391861D0B15BBA22D7D6E2CCA8B9%40PSAP153MB0391.APCP153.PROD.OUTLOOK.COM
In-Reply-To: <ed63b919-eb3a-1aae-0746-1ff582890a28@gmx.de>

```
Hi Johannes,

Fix verified in 2.40.0. Thank you for restoring this behaviour.

Best,
Drew.

-----Original Message-----
From: Johannes Schindelin <Johannes.Schindelin@gmx.de> 
Sent: Monday, March 27, 2023 8:19 PM
To: Drew Noakes <drnoakes@microsoft.com>
Cc: git@vger.kernel.org
Subject: Re: --jobs=0 no longer does any work

Hi Drew,

On Fri, 17 Feb 2023, Drew Noakes wrote:

> What did you do before the bug happened? (Steps to reproduce your issue)
>
> - Enter a repo with multiple remotes
> - Run: git fetch --all --prune --jobs=0
>
> What did you expect to happen? (Expected behavior)
>
> - Multiple remotes to be fetched in parallel
>
> What happened instead? (Actual behavior)
>
> - Nothing fetched and command exits quickly with no output
>
> What's different between what you expected and what actually happened?
>
> - That command used to work correctly. It now does nothing.

This should be fixed via
https://github.com/git/git/commit/d180cc297922569e530da843bee4df3964167dea
which made it into v2.40.0, unless I am mistaken. Could you verify?

Ciao,
Johannes

```
