-
Notifications
You must be signed in to change notification settings - Fork 1
Description
I attempted to implement git push over SSH in #1 but failed to do so. The code from ssh is still available in its own crate. The problems are described in #1 but the gist of the matter is that I didn't quite understand how to parse the pack data in ssh.
I've since implemented this (somewhat) over HTTP by calling the git executable. I wanted to try implementing it using git2 (or similar), but I was able to just pass the data easily to git since HTTP took care of determining the exact payload size. While reading into that I discovered that I may be able to use gitoxide's solution instead: https://docs.rs/git-pack/latest/git_pack/data/struct.Entry.html#method.from_bytes may be able to parse the packfile from the bytes. I had thought I attempted to use this previously, but it may just be the case that my understanding of how the protocol works has increased since then.
I'd like to get ssh pushing, as well as pulling working