while cloning repositories from bpm suite installed in Openshift.I am getting the following git error.
fatal: protocol error: bad line length character: Inva
Please help me to fix this.
This error is generally seen when using an SSH URL (like git@aserver:arepo
)
The usual cause is, on the git repository hosting server side, a .profile or .bashrc
which includes some echo
: see Git FAQ
It likely means you have some extraneous characters, info message or something upon logging into ssh in command mode.
To test this, do:
ssh -T user@git.example.com echo testing commands
You should only see testing commands returned. If there are any other characters, you should examine your dot shell
rc
file to find anyecho
or other commands that may produce output.
In your case, for Openshift, consider one of the common commands:
rhc ssh ls
Check if the ls
is polluted by any other output.