rahedges / git-repo

Automatically exported from code.google.com/p/git-repo
Apache License 2.0
0 stars 0 forks source link

Repo is not sync on ssh with passphrase #145

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Affected Version:
OS: Ubutnu 12.04
repo version v1.12.2
       (from https://gerrit.googlesource.com/git-repo)
repo launcher version 1.19
       (from /usr/local/bin/repo)
git version 1.7.9.5
Python 2.7.3 (default, Apr 10 2013, 06:20:15) 
[GCC 4.6.3]

What steps will reproduce the problem?
1. use ssh-client without ssh-agent
2. ssh-keygen with passphrase
3. ssh-copy gitserver.example.com
4. repo init -u ssh://gitserver.example.com/git/manifests
5. repo --trace sync

Then I get two password request

repo --trace sync
: unpickle /opt/git3/.repo/manifests.git/config
: unpickle /home/user/.gitconfig
: unpickle /opt/git3/.repo/repo/.git/config
: ssh -p 2222 -o ControlPath /tmp/ssh-5IuM5P/master-%r@%h:%p git.cc.naumen.ru 
-O check
: ssh -M -N -p 2222 -o ControlPath /tmp/ssh-5IuM5P/master-%r@%h:%p 
gitserver.example.com
: export GIT_DIR=/opt/git3/.repo/manifests.git
: git fetch origin --tags +refs/heads/*:refs/remotes/origin/*
Enter passphrase for key '/home/user/.ssh/id_rsa': Enter passphrase for key 
'/home/user/.ssh/id_rsa': 

I enter the password and click enter
After that, the console appears newline and no sync repo.

I enter the password again (no clear text)
And repo starts synс

Original issue reported on code.google.com by margaso...@gmail.com on 11 Jul 2013 at 10:03