-
Notifications
You must be signed in to change notification settings - Fork 2.5k
depth option does not seem to work with libssh2 #6889
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
Comments
Same error here. |
Surprising. I haven't had time to take a look yet; does it work with any backend for you? 🤔 |
It works with the default (https) backend, and ssh with the "exec" option. I have not tried any others. |
That's so weird. Thanks for the details. |
same bug here, http clone with depth is fine, but ssh(libssh2 as backend) will got err: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Setting the
depth
parameter doesn't seem to work when using the libssh2 backend.Reproduction steps
Modify the clone example to set the depth parameter:
Build with libssh2:
cmake -DUSE_SSH=libssh2 -DBUILD_EXAMPLES=on ..
Run the example trying to clone an ssh URL:
Note that it works with the
exec
backend.Expected behavior
Should be able to set depth with SSH.
Actual behavior
Get GIT_EEOF GIT_ERROR_NET error.
Version of libgit2 (release number or SHA1)
9f34061
Operating system(s) tested
macOS
The text was updated successfully, but these errors were encountered: