Git pull return, fatal: protocol error: line length character: no s

When I run git push or pull, I get the error

fatal: protocol error: bad line length character: No s

      

My environment:

Windows 7 pro

Visual Studio 2012

git bash

This is a repo that I have used several times before (although not for about a month). I am also the owner and this is a private repo.

I found this question asked here

But this is not the same problem. I didn't have any key issues and had this repo for almost a year.

I also found the answer here , but the repo is definitely not wrong. I found the answer in several places and I can guarantee that it won't be wrongly changed.

Another answer I found is this and they say it is an access issue. Once again, I have had this repo for about a year and am also a gitlab admin, so I would know if anything has changed. I am still the owner of the repo, but to make sure I went to developer and then went back to owner / manager and nothing worked.

As additional information, I checked all the server logs and there seems to be no error when this happens, so I assume this is a local problem.

Any ideas?

EDIT

This question is definitely not a duplicate of this

The reason is that while the error messages are similar and the answer may provide more information on how to fix this problem, it doesn't actually solve the problem.

When I ran

ssh gituser@gitlab.mycompany.com git-receive-pack namespace/project.git

      

The resulting result

008818ad46342298ddf8w87er7sdf769we7r76sd refs/heads/master report-status delete-refs side-band-64k quiet ofs-delta agent=git/2.0.5

00514daa7afb0982347928374sdf987asfd refs/tags/archive/branchName

004865987sdf987asdf98a7sf98as7f97 refs/tags/release/v1.2.0.2
0048345f9s9df87asd9f8as79df879s8d refs/tags/release/v1.2.0.4
0048c7fd22015s9df87as9df89sadf87d refs/tags/release/v1.2.0.6
0000

      

after 0000 at the end, it just stopped flashing an underline.

According to a possible duplicate reference, this command should produce an error message that starts with "No s", but it doesn't.

+3


source to share


1 answer


I am using GitLab. In case I renamed the project name and project path in GitLab, there was an error "No s" (no such project), but forget to do it on my local machine.

So, for me the solution was to set a new remote url:



git remote set-url origin git@gitlab.myserver.ru:new-project-name.git

      

0


source







All Articles