Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.4k views
in Technique[技术] by (71.8m points)

git - fatal: protocol error: bad line length character: Inva

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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

This error is generally seen when using an ssh url (like git@aserver:arepo)

The usual cause is, on the git repo 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 [email protected] 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 any echo 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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...