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@xxxxxx] Sent: Thursday, December 17, 2015 11:46 AM To: Alexander Skrinnik Cc: git@xxxxxxxxxxxxxxx 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 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html