Use GIT_SSH

Bug #1024054 reported by Tisza Gergő
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
git-review
Triaged
Low
Unassigned

Bug Description

Git allows setting the SSH client via the GIT_SSH environmental variable. This is quite useful on Windows/msysgit to use an SSH client which is integrated with Windows (such as plink) so that one only has to enter the passphrase once per reboot, but git-review calls "ssh" regardless of the GIT_SSH setting (which means one needs to enter the passphrase once for every git shell opened). Honoring the GIT_SSH setting would make git-review much more convenient to use on Windows.

Revision history for this message
Marcin Cieślak (saperski) wrote :

Good idea, but we also call "scp", which could (maybe) be replaced with "pscp.exe" as well (there is even bug 1024073 about fixing paths for msysgit ssh). There is no GIT_SCP probably; should path to SCP be inferred from GIT_SSH (like replace "ssh" -> "scp", "plink" -> "pscp")?

Revision history for this message
Marcin Cieślak (saperski) wrote :

But possibly we could just use SSH (as scp does)

plain "scp gerrithost hooks/commit-msg"

seems to be equivalent to

"ssh -x -oForwardAgent=no -oPermitLocalCommand=no -oClearAllForwardings=yes -- gerrithost scp -f hooks/commit-msg"

James E. Blair (corvus)
Changed in git-review:
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Marcin Cieślak (saperski) wrote :

Proposed solution on the mailing list http://lists.openstack.org/pipermail/openstack-infra/2013-January/000023.html by using something like https://github.com/saper/simple-scp-client instead of external scp client. Would also help with bug 1024073.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.