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

Merged
github-actions[bot] merged 2 commits from cherry-pick-1432268967-release-1.2 into release-1.2 2021-11-09 08:27:24 -06:00

2 Commits

Author SHA1 Message Date
lhchavez 2bbf830a38 Please run checks 2021-11-09 06:18:49 -08:00
Sunny 6dc0d59c97 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:14 +00:00