Teach lookup_prog not to select directories
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 <c137283386f5eaa95845a386df76df13c878beec@gmail.com>
Signed-off-by: Johannes Sixt <5cc107486946fdcf16e86d7c808fa50f4312125f@telecom.at>
Signed-off-by: Junio C Hamano <a6723cc3f76163bf7adb636a73ac3b0ceb3e6b9b@pobox.com>

destenson/git,destenson/git,destenson/git,destenson/git,destenson/git,destenson/git,destenson/git,destenson/git