Repository navigation
git pull output has changed in git 1.8.5 #142
Description
Activity
These errors first appeared when I upgraded to git 1.8.5. I’m not sure what the previous version of git was, but I got it via XCode on Mavericks.
- added a commit that references this issue
on Mar 16, 2014 This particular bug is driving me up the wall. If anybody's got a working fix it would be greatly appreciated.
- added a commit that references this issue
on May 16, 2014 I believe the fix is already included in the latest release of git-python. Please reopen this issue or comment if not the case.
I am using GitPython 0.3.5 and git 1.8.3.4 and this is broken for me. The length of the first thing it's comparing is 812 elements and the second is 811 elements. I don't necessarily want to attach a gigantic list of branch names here but what is the best way to debug this?
The reason it may appear broken is that in git-python 0.3.5, the assertion was re-added in a slightly different form. It's meant to prevent Fetch-information to be truncated, which is what would have happened in git-versions prior to that.
Therefore I hoped by putting this assertion to finally learn why it may still fail.I would be glad if you could help me to reproduce this issue - either by providing me with steps to do it myself or by getting access to the data involved. The latter would be each line in
my_progress_handlerand the entire contents of the FETCH_HEAD.In the meanwhile, to solve your problem, probably even without causing side-effects, you can just remove the assertion in your code, or switch back to git-python 0.3.4.
Please note that I am somewhat hesitant to reopen this issue, as yours is not exactly the same. In case you want to provide the requested information, you could do so in a new issue.
Thank you
I wrote a script to parse the two things that it is trying to compare. FETCH_HEAD right now has 813 lines. The output of git fetch, when I run it manually on the command line (I have not been able to figure out exactly what command it is running, but I'm assuming it's
git fetch --all -v- is this correct?) has also 813 lines if you ignore the first two lines:Fetching originandFrom github.com:org/repoHowever, the very last branch in FETCH_HEAD is missing in the GitPython fetch output, in my case it is this line:
a3a81646dd65dfa4b4412c0f3a5fd4183cbaa2e5 not-for-merge branch 'zendesk' of github.com:org/repoIt can't find the matching line in the fetch output:
= [up to date] zendesk -> origin/zendeskEven though I see the above line when I do
git fetch --all -v, I don't see it in the GitPython assert output. Let me know if you need more info. Is there possibly some length limit?BTW I was using GitPython==0.3.2.RC1 prior to this and it was still failing an assertion, although I'm not sure the assertion was exactly the same. Do you think 0.3.4 will fix this temporarily?
I put the above information in a new issue: #232


I’m seeing new errors resulting from changes to git 1.8.5 output, in remote.py line 539 and 605. Looks connected to issues #133 and #138:
The outputs being compared:
…and: