libgit2 / git2go

Git to Go; bindings for libgit2. Like McDonald's but tastier.
MIT License
1.93k stars 316 forks source link

Make ssh commands used in the git smart transport compatible with libgit2 (#852) #856

Closed github-actions[bot] closed 2 years ago

github-actions[bot] commented 2 years ago

Before the fix, the commands sent were of the form:

git-upload-pack "/bar/test-reponame"

This resulted in the git server returning error: error parsing command: invalid git command

This change replaces the double quotes with single quotes:

git-upload-pack '/bar/test-reponame'

Co-authored-by: lhchavez lhchavez@lhchavez.com (cherry picked from commit 6cea7a7a59f44e0e72ca577fbea65a042b3fb26b)