Closed
Description
https://github.com/gitpython-developers/GitPython/blob/0.3/git/remote.py#L539
This assertion is failing when I try to run a fetch over SSH on a box that has an /etc/issue, due to the length of the output from the git fetch not being the expected number of lines.
Metadata
Metadata
Assignees
Type
Projects
Relationships
Development
No branches or pull requests
Activity
medwards commentedon Feb 20, 2013
Experiencing the same problem against GitHub. How were you able to determine that
/etc/issue
was the problem? Or is it just in your environment where thats the source?terminalmage commentedon Feb 20, 2013
I caught the exception and saw the /etc/issue in one side of the assertion. Renaming /etc/issue to /etc/issue.bak got rid of the assertion error.
medwards commentedon Feb 21, 2013
Did the AssertionError look anything like this? Or is this unique to my situation?
medwards commentedon Feb 21, 2013
Ah my pulls are being happening over HTTPS, I'll look into opening a new issue if they're not related.
terminalmage commentedon Feb 21, 2013
Yeah this is different, this is over SSH.
hashar commentedon Jan 13, 2014
Dowstream bug at Wikimedia https://bugzilla.wikimedia.org/show_bug.cgi?id=59991
That assert causes me some error as well. Pasting there in case it is relevant:
Tons of changes are being merged successfully though. I have not managed to reproduce the issue :(
mattcallanan commentedon Mar 26, 2014
Had a similar problem where AssertionError would occur unless using LogLevel=QUIET in .ssh/config. Trialling a workaround using a custom GIT_SSH setting:
where quiet_ssh.sh lives in same directory as python code and contains:
ghost commentedon Jun 27, 2014
@mattcallanan +1
debugloop commentedon Jul 18, 2014
I am having this very same problem. Relevant pdb output:
As you can see, this is simply a banner message being in the way.
Thanks for the workaround @mattcallanan
Byron commentedon Jul 18, 2014
In branch 0.3, this should already be fixed. You might want to try that one to see if it fixes the problem in that case as well.
Byron commentedon Nov 19, 2014
The latest version on pypi contains a fix for this issue. Please leave a comment if it doesn't fix it for you.