Skip to content

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

Merged
lhchavez merged 2 commits into
release-1.2from
cherry-pick-1432268967-release-1.2
Nov 9, 2021
Merged

Make ssh commands used in the git smart transport compatible with libgit2 (#852)#856
lhchavez merged 2 commits into
release-1.2from
cherry-pick-1432268967-release-1.2

Conversation

@github-actions

@github-actions github-actions Bot commented Nov 7, 2021

Copy link
Copy Markdown
  • 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 6cea7a7)

darkowlzz and others added 2 commits November 7, 2021 20:21
…git2 (#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 6cea7a7)
@lhchavez
lhchavez merged commit 3033505 into release-1.2 Nov 9, 2021
@lhchavez
lhchavez deleted the cherry-pick-1432268967-release-1.2 branch November 9, 2021 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants