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

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

2 Commits

Author SHA1 Message Date
lhchavez a4e63f475b Please run checks 2021-11-09 06:13:56 -08:00
Sunny ddadabb8f0 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:11 +00:00