-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
git 2.14.0 protocol error: bad line length character: Not #1258
Comments
Can you reproduce this with a public GitLab repository? Is it an SSH or HTTPS remote? Also, please set |
It is an SSH remote.
|
When running with Git for Windows 2.13.3, I get the following output:
|
@k-mack let's focus on the failing You can test out your SSH connection with tracing enabled using this command:
It's very verbose, but should yield some interesting clues around why it's failing for you. |
IMO that
it pretty telling. I'd specilate that the remote SSH server responds directly with something like "Not authorized blah blah" instead of running the intended Git command which the local Git instance expects to communicate with instead. So yes, I'm with @shiftkey on this: you should try to reproduce the problem by running the SSH client in a way Git itself runs it and see why it fails. |
Hi, I also have problems with I have the following output with
When I use
|
I'm pretty sure Baldurien in this post has actually nailed the issue:
|
Thanks, everybody, especially Baldurien! This is a pretty bad regression... |
Maybe this is just a quoting issue on the remote side? Just to throw in a direction to get a fix on the way that will get you best of both worlds? |
From your output, it looks as if BitBucket looks at So I think it is by design that |
@nalla I'm afraid this might has something to do with the fact the remotes might use special restricted shells to run Git commands which might have their own ideas about what is permitted to run and what is not. So they should all get fixed first which seems like a long road ahead ;-) |
Could y'all please test the latest snapshot at https://wingit.blob.core.windows.net/files/index.html ? Thanks! |
@dscho works! |
Thanks for the feedback! FWIW I think that #1257 has the same underlying root cause. |
A regression introduced in v2.14.0 that prevented fetching via SSH [was fixed](git-for-windows/git#1258). Signed-off-by: Johannes Schindelin <[email protected]>
It would appear that this change (which was intended to fix tests interacting with local repositories when `git-upload-pack` was not in the `PATH`) regresses on SSH access. This reverts commit 40023e5 and fixes #1258. Signed-off-by: Johannes Schindelin <[email protected]>
It would appear that this change (which was intended to fix tests interacting with local repositories when `git-upload-pack` was not in the `PATH`) regresses on SSH access. This reverts commit 40023e5 and fixes #1258. Signed-off-by: Johannes Schindelin <[email protected]>
It would appear that this change (which was intended to fix tests interacting with local repositories when `git-upload-pack` was not in the `PATH`) regresses on SSH access. This reverts commit 40023e5 and fixes #1258. Signed-off-by: Johannes Schindelin <[email protected]>
It would appear that this change (which was intended to fix tests interacting with local repositories when `git-upload-pack` was not in the `PATH`) regresses on SSH access. This reverts commit 40023e5 and fixes #1258. Signed-off-by: Johannes Schindelin <[email protected]>
It would appear that this change (which was intended to fix tests interacting with local repositories when `git-upload-pack` was not in the `PATH`) regresses on SSH access. This reverts commit 40023e5 and fixes #1258. Signed-off-by: Johannes Schindelin <[email protected]>
Setup
defaults?
to the issue you're seeing?
No.
Details
Bash
Minimal, Complete, and Verifiable example
this will help us understand the issue.
Download commits from remote "origin."
The following error was returned:
URL to that repository to help us with testing?
The problem only occurs with repositories being internally hosted on a server running GitLab 6.0.1. When I downgrade to Git for Windows 2.13.3,
fetch
andclone
works as expected.The text was updated successfully, but these errors were encountered: