This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: git fork failure on pull with a workaround (hopefully a clue for a fix)
- From: Bill Hoffman <bill dot hoffman at kitware dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 08 Nov 2012 09:28:30 -0500
- Subject: Re: git fork failure on pull with a workaround (hopefully a clue for a fix)
- References: <509AB02F.1000300@kitware.com> <509AC4E0.2080709@bopp.net>
On 11/7/2012 3:30 PM, Jeremy Bopp wrote:
On 11/07/2012 01:02 PM, Bill Hoffman wrote:
Is there a
way to debug this?
The first step is to follow the problem reporting guidelines:
http://cygwin.com/problems.html
Following them may reveal a conflicting cygwin.dll file or something
similar in your full path which is interfering with some git subcommand
loading properly.
Attached is the cygcheck.out.
Given that a PATH of just /usr/bin works for you, try appending
progressively more segments of your original path until the problem
reproduces. Once you find a PATH that reliably fails, remove the last
added segment as a suspect and continue adding the remaining segments
from the original PATH until you are left with a good PATH and a list of
suspects. Then go back to the PATH of /usr/bin and append each suspect
individually and test again to see if the suspects are the problem alone.
I had done that in the past and found that it seemed to be a length
issue. I could not find a specific thing that needed to be in the PATH
to make it break. I just tried again, and here is what I found:
This fails: (length 372)
export PATH="/usr/bin:/cygdrive/c/Program Files (x86)/Microsoft Visual
Studio 9.0/Common7/IDE:/cygdrive/c/Program Files (x86)/Microsoft Visual
Studio 9.0/VC/BIN:/cygdrive/c/Program Files (x86)/Microsoft Visual
Studio
9.0/Common7/Tools:/cygdrive/c/Windows/Microsoft.NET/Framework/v3.5:/cygdrive/c/Windows/Microsoft.NET/Framework/v2.0.50727:/usr/local/bin:/usr/bin:/some/bogus/path/that"
But this works: (length 371)
export PATH="/usr/bin:/cygdrive/c/Program Files (x86)/Microsoft Visual
Studio 9.0/Common7/IDE:/cygdrive/c/Program Files (x86)/Microsoft Visual
Studio 9.0/VC/BIN:/cygdrive/c/Program Files (x86)/Microsoft Visual
Studio
9.0/Common7/Tools:/cygdrive/c/Windows/Microsoft.NET/Framework/v3.5:/cygdrive/c/Windows/Microsoft.NET/Framework/v2.0.50727:/usr/local/bin:/usr/bin:/some/bogus/path/tha"
However, it is not just length....
Because this one works: (length 400)
export PATH="/usr/bin:/cygdrive/c/Program Files (x86)/Microsoft Visual
Studio 9.0/Common7/IDE:/cygdrive/c/Program Files (x86)/Microsoft Visual
Studio 9.0/VC/BIN:/cygdrive/c/Program Files (x86)/Microsoft Visual
Studio
9.0/Common7/Tools:/cygdrive/c/Windows/Microsoft.NET/Framework/v3.5:/cygdrive/c/Windows/Microsoft.NET/Framework/v2.0.50727:/cygdrive/c/Program
Files (x86)/Microsoft Visual Studio 9.0/VC/VCPackages"
Since its also possible that you may be encountering some PATH length
limit here, it may also be worthwhile to report the output of the
following command:
echo "$PATH" | wc -c
Good luck!
Thanks.
-Bill
Attachment:
cygcheck.out
Description: Text document
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple