0

I'm on Ubuntu. I didn't have any issues with git but out of the blue I start seeing this error for any remote git operations like git pull, push etc. Searched the other posts on this and when I ran ssh git@hostname git-upload-pack '/path_to_your_repo'

I got-" You don't have access."

Any pointers?

Raj
  • 319
  • 2
  • 4
  • 14

2 Answers2

0

The error you get is pretty common, namely:

fatal: protocol error: bad line length character: This

This is due to of problems with the Shell access (is the access allowed?) on the server..

Perhaps this link would be of any help: Git Remote: Error: fatal: protocol error: bad line length character: Unab. It seems related.

I hope it helps!

Community
  • 1
  • 1
Joey Dorrani
  • 371
  • 1
  • 1
0

I got this error too, and for me it was the case of echoing "You've got mail." in the shell. Don't know why it's so fragile about an echo, but I re-wrote my mail check to first check if it has a tty before echoing the mail.

Daniel
  • 327
  • 2
  • 7