# CruiseControl.NET hangs on git-submodule bad file descriptor

5 messages from 2015-12-17 to 2015-12-17. Participants: Alexander Skrinnik, Johannes Schindelin.
Thread: https://gitlist.dev/t/41031

## Alexander Skrinnik, 2015-12-17 08:17

Subject: CruiseControl.NET hangs on git-submodule bad file descriptor
Message-ID: <HE1PR08MB089107ED02BEA428A6BB37A5F8E00@HE1PR08MB0891.eurprd08.prod.outlook.com>
URL: https://gitlist.dev/e/HE1PR08MB089107ED02BEA428A6BB37A5F8E00%40HE1PR08MB0891.eurprd08.prod.outlook.com

```
Hi guys,

I had installed CruiseControl.NET 1.8.5 and Git-1.9.5-preview20150319
CC.NET invokes bat-file which invokes 
git submodule foreach git checkout "myBranch"

It worked good.
Today I upgraded git to 2.6.4 and CC.NET fails on this command with error:
C:\Program Files (x86)\Git\mingw32/libexec/git-core\git-submodule: line 544: 0: Bad file descriptor

When I run the same command from cmd window all works without error
For now I have to return to 1.9.5 version.

Could you, please, help to fix the issue?

Thank you in advance
--
Alexander Skrinnik

```

## Johannes Schindelin, 2015-12-17 09:46

Subject: Re: CruiseControl.NET hangs on git-submodule bad file descriptor
Message-ID: <alpine.DEB.2.20.1512171045230.6483@virtualbox>
URL: https://gitlist.dev/e/alpine.DEB.2.20.1512171045230.6483%40virtualbox
In-Reply-To: <HE1PR08MB089107ED02BEA428A6BB37A5F8E00@HE1PR08MB0891.eurprd08.prod.outlook.com>

```
Hi Alexander,

On Thu, 17 Dec 2015, Alexander Skrinnik wrote:

> I had installed CruiseControl.NET 1.8.5 and Git-1.9.5-preview20150319
> CC.NET invokes bat-file which invokes 
> git submodule foreach git checkout "myBranch"
> 
> It worked good.
> Today I upgraded git to 2.6.4 and CC.NET fails on this command with
> error: C:\Program Files
> (x86)\Git\mingw32/libexec/git-core\git-submodule: line 544: 0: Bad file
> descriptor

This sounds very similar (maybe identical) to this bug report:

	https://github.com/git-for-windows/git/issues/181

Ciao,
Johannes

```

## Alexander Skrinnik, 2015-12-17 12:32

Subject: RE: CruiseControl.NET hangs on git-submodule bad file descriptor
Message-ID: <HE1PR08MB089122D0784C67685EAF5A76F8E00@HE1PR08MB0891.eurprd08.prod.outlook.com>
URL: https://gitlist.dev/e/HE1PR08MB089122D0784C67685EAF5A76F8E00%40HE1PR08MB0891.eurprd08.prod.outlook.com
In-Reply-To: <alpine.DEB.2.20.1512171045230.6483@virtualbox>

```
Hi Johannes,

Thank you for your answer.
Yes, this is the same issue. I found workaround, CC.NET invokes bat-file with command:
git submodule foreach git checkout "myBranch" <NUL

It works fine. But looks like the issue is in git. Not in CC.NET :)
If you have a chance, could you look into it, please?

Thanks a lot
--
Alexander Skrinnik


-----Original Message-----
From: Johannes Schindelin [mailto:Johannes.Schindelin@gmx.de] 
Sent: Thursday, December 17, 2015 11:46 AM
To: Alexander Skrinnik
Cc: git@vger.kernel.org
Subject: Re: CruiseControl.NET hangs on git-submodule bad file descriptor

Hi Alexander,

On Thu, 17 Dec 2015, Alexander Skrinnik wrote:

> I had installed CruiseControl.NET 1.8.5 and Git-1.9.5-preview20150319 
> CC.NET invokes bat-file which invokes git submodule foreach git 
> checkout "myBranch"
> 
> It worked good.
> Today I upgraded git to 2.6.4 and CC.NET fails on this command with
> error: C:\Program Files
> (x86)\Git\mingw32/libexec/git-core\git-submodule: line 544: 0: Bad 
> file descriptor

This sounds very similar (maybe identical) to this bug report:

	https://github.com/git-for-windows/git/issues/181

Ciao,
Johannes

```

## Johannes Schindelin, 2015-12-17 13:54

Subject: RE: CruiseControl.NET hangs on git-submodule bad file descriptor
Message-ID: <alpine.DEB.2.20.1512171453140.6483@virtualbox>
URL: https://gitlist.dev/e/alpine.DEB.2.20.1512171453140.6483%40virtualbox
In-Reply-To: <HE1PR08MB089122D0784C67685EAF5A76F8E00@HE1PR08MB0891.eurprd08.prod.outlook.com>

```
Hi Alexander,

you might want to refrain from top-posting on this list in the future.
Just sayin' ;-)

On Thu, 17 Dec 2015, Alexander Skrinnik wrote:

> I found workaround, CC.NET invokes bat-file with command:
> git submodule foreach git checkout "myBranch" <NUL
> 
> It works fine. But looks like the issue is in git. Not in CC.NET :)
> If you have a chance, could you look into it, please?

Unfortunately, this is one of those problems where the bug reporter
expects me not only to fix the problem, but also to come up with an easy
way to reproduce the issue.

And even more unfortunate is the fact that I am really pressed on some
other, more critical issues.

Is there really no chance for you to have a crack at resolving this issue?

Ciao,
Johannes

```

## Alexander Skrinnik, 2015-12-17 14:07

Subject: RE: CruiseControl.NET hangs on git-submodule bad file descriptor
Message-ID: <HE1PR08MB089115A3232C83713A4E3859F8E00@HE1PR08MB0891.eurprd08.prod.outlook.com>
URL: https://gitlist.dev/e/HE1PR08MB089115A3232C83713A4E3859F8E00%40HE1PR08MB0891.eurprd08.prod.outlook.com
In-Reply-To: <alpine.DEB.2.20.1512171453140.6483@virtualbox>

```
OK, no problem 
I have workaround :)

Thanks a lot for your help

Best wishes
--
Alexander Skrinnik


-----Original Message-----
From: Johannes Schindelin [mailto:Johannes.Schindelin@gmx.de] 
Sent: Thursday, December 17, 2015 3:55 PM
To: Alexander Skrinnik
Cc: git@vger.kernel.org
Subject: RE: CruiseControl.NET hangs on git-submodule bad file descriptor

Hi Alexander,

you might want to refrain from top-posting on this list in the future.
Just sayin' ;-)

On Thu, 17 Dec 2015, Alexander Skrinnik wrote:

> I found workaround, CC.NET invokes bat-file with command:
> git submodule foreach git checkout "myBranch" <NUL
> 
> It works fine. But looks like the issue is in git. Not in CC.NET :) If 
> you have a chance, could you look into it, please?

Unfortunately, this is one of those problems where the bug reporter expects me not only to fix the problem, but also to come up with an easy way to reproduce the issue.

And even more unfortunate is the fact that I am really pressed on some other, more critical issues.

Is there really no chance for you to have a crack at resolving this issue?

Ciao,
Johannes

```
