git-gui cannot ask for password when started outside a terminal

Bug #601595 reported by zoltan_54356
12
This bug affects 2 people
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/lib/git-core/git-gui--askpass): No such file or directory
Permission denied, please try again.
ssh_askpass: exec(/usr/lib/git-core/git-gui--askpass): No such file or directory
Permission denied, please try again.
ssh_askpass: exec(/usr/lib/git-core/git-gui--askpass): No such file or directory
Permission denied (publickey,password).
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://kerneltrap.org/mailarchive/git/2008/11/4/3916164/thread

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: git-gui 1:1.7.0.4-1
ProcVersionSignature: Ubuntu 2.6.32-22.36-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-22-generic i686
Architecture: i386
Date: Sun Jul 4 14:36:34 2010
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, user)
 LANG=hu_HU.UTF-8
 SHELL=/bin/bash
SourcePackage: git-core

Revision history for this message
zoltan_54356 (zoltan-padrah) wrote :
Anders Kaseorg (andersk)
Changed in git (Ubuntu):
status: New → Confirmed
Revision history for this message
Anders Kaseorg (andersk) wrote :

Thanks for your report, I’ve forwarded it on to Debian. One workaround is ‘aptitude install ssh-askpass-gnome; export
SSH_ASKPASS=ssh-askpass’.

Changed in git (Debian):
status: Unknown → New
Revision history for this message
zoltan_54356 (zoltan-padrah) wrote :

Thank you for the attention; the workaround fixes this issue.

Changed in git (Debian):
status: New → Confirmed
Changed in git (Debian):
status: Confirmed → Fix Committed
Changed in git (Debian):
status: Fix Committed → Fix Released
Revision history for this message
Anders Kaseorg (andersk) wrote :

Fixed in natty’s git 1.7.4.1-1.

Changed in git (Ubuntu):
status: Confirmed → Fix Released
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.