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

Merged
github-actions[bot] merged 2 commits from cherry-pick-1432268967-release-0.27 into release-0.27 2021-11-09 08:26:34 -06:00

2 Commits

Author SHA1 Message Date
lhchavez 241030097e Please run checks 2021-11-09 06:15:30 -08:00
Sunny a93ffe6ca8 Make ssh commands used in the git smart transport compatible with libgit2 (#852)
* Fix ssh commands used in go SmartSubtransport

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'
```

* Update ssh.go

Co-authored-by: lhchavez <lhchavez@lhchavez.com>
(cherry picked from commit 6cea7a7a59)
2021-11-07 20:21:09 +00:00