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

Merged
github-actions[bot] merged 2 commits from cherry-pick-1432268967-release-1.0 into release-1.0 2021-11-09 08:27:06 -06:00
github-actions[bot] commented 2021-11-07 14:21:16 -06:00 (Migrated from github.com)
  • 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)

* 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 6cea7a7a59f44e0e72ca577fbea65a042b3fb26b)
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: jcarr/git2go#855
No description provided.