git-gui cannot ask for password when started outside a terminal
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
git (Debian) |
Fix Released
|
Unknown
|
|||
git (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: git-gui
When trying to pull/push from/to a repository, in the case when git-gui is not started from a terminal, it cannot ask for password. It shows a window with the following messages:
ssh_askpass: exec(/usr/
Permission denied, please try again.
ssh_askpass: exec(/usr/
Permission denied, please try again.
ssh_askpass: exec(/usr/
Permission denied (publickey,
fatal: The remote end hung up unexpectedly
As it can be seen, the git-gui--askpass file is missing from the system, and couldn't find it in any Ubuntu package.
As expectation, git gui should ask for the needed password, and complete the pull or push operation.
If git gui is started from a terminal, it asks for password in that terminal.
Steps to reproduce:
1. press alt+f2, type in "git gui", hit enter
2. create a new repository
3. select a directory for the new repository
4. in the menu, remote -> add
5. fill in the data for a remote git repository; it should be a one that is accessed through SSH and asks a password. for example, sourceforge services can be used like this
6. at the bottom of the dialog, select the "download now option"
7. click ok
8. you will get the above described error message
expected:
at 8. get, a dialog asking for password should appear, and the remote repository should be downloaded
Note that copying the git-gui--askpass file from the source distribution in the /usr/lib/git-core directory, git gui will ask for the password, but the password window will become non-responsive after entering the password.
git-core version 1:1.7.0.4-1
git-gui version 1:1.7.0.4-1
$ lsb_release -rd
Description: Ubuntu 10.04 LTS
Release: 10.04
See also this:
http://
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: git-gui 1:1.7.0.4-1
ProcVersionSign
Uname: Linux 2.6.32-22-generic i686
Architecture: i386
Date: Sun Jul 4 14:36:34 2010
PackageArchitec
ProcEnviron:
PATH=(custom, user)
LANG=hu_HU.UTF-8
SHELL=/bin/bash
SourcePackage: git-core
Changed in git (Ubuntu): | |
status: | New → Confirmed |
Changed in git (Debian): | |
status: | Unknown → New |
Changed in git (Debian): | |
status: | New → Confirmed |
Changed in git (Debian): | |
status: | Confirmed → Fix Committed |
Changed in git (Debian): | |
status: | Fix Committed → Fix Released |
Thanks for your report, I’ve forwarded it on to Debian. One workaround is ‘aptitude install ssh-askpass-gnome; export ssh-askpass’ .
SSH_ASKPASS=