Teach lookup_prog not to select directories
commitfe77b6959c47e1eaec0c96599b2c5ce7907707ec
authorEric Raible <raible@gmail.com>
Fri, 18 Jul 2008 07:34:42 +0000 (18 09:34 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sat, 19 Jul 2008 18:17:43 +0000 (19 11:17 -0700)
treee647949bbae2dc891ce7d500cc3f760228cb5b6d
parent42f7a2dae8dfb858cce4a685e8e8506d77cbd1cb
Teach lookup_prog not to select directories

Without this simple fix "git gui" in the git source directory
finds the git-gui directory instead of the tcl script in /usr/bin.

Signed-off-by: Eric Raible <raible@gmail.com>
Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/mingw.c