Code

git-gui: properly popup error if gitk should be started but is not installed
authorGerrit Pape <pape@smarden.org>
Fri, 29 Jun 2007 11:32:29 +0000 (11:32 +0000)
committerShawn O. Pearce <spearce@spearce.org>
Sat, 30 Jun 2007 04:43:20 +0000 (00:43 -0400)
commit7aecb128779ffd8258f01f4382df963900ae6acd
tree60064ad74fd30dc8dc9e000c34665ca5b33a6944
parent7e508eb1a2efce72be1651a35ab3150bfa3c88d6
git-gui: properly popup error if gitk should be started but is not installed

On 'Visualize ...', a gitk process is started.  Since it is run in the
background, catching a possible startup error doesn't work, and the error
output goes to the console git-gui is started from.  The most probable
startup error is that gitk is not installed; so before trying to start,
check for the existence of the gitk program, and popup an error message
unless it's found.

This was noticed and reported by Paul Wise through
 http://bugs.debian.org/429810

Signed-off-by: Gerrit Pape <pape@smarden.org>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui.sh