Set up argv0_path correctly, even when argv[0] is just the basename
commit9fef956317af21ee8bd56b3ee9ee60c4ec1e66dc
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Sat, 26 Jul 2008 14:12:56 +0000 (26 16:12 +0200)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Sun, 7 Feb 2010 19:10:34 +0000 (7 20:10 +0100)
tree61820e580c77088299b685d196e454b0e7922f72
parent586f59d95e691b2410968d0440b7bb6f5460e849
Set up argv0_path correctly, even when argv[0] is just the basename

When the program 'git' is in the PATH, the argv[0] is set to the basename.
However, argv0_path needs the full path, so add a function to discover the
program by traversing the PATH manually.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
exec_cmd.c
exec_cmd.h