git_exec_path, execv_git_cmd: ignore empty environment variables
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 29 May 2006 00:34:34 +0000 (04:34 +0400)
committerJunio C Hamano <junkio@cox.net>
Wed, 31 May 2006 04:49:01 +0000 (21:49 -0700)
commit2b6016263c984b71b29373fc9354d497cd51947d
treec228d1c6f3f08c3d042c8ad51f75f3173e697cfc
parentd6859901012535b3781e5332923ede51d5977395
git_exec_path, execv_git_cmd: ignore empty environment variables

Ignoring empty environment variables is good common practice.
Ignoring --exec-path with empty argument won't harm, too:
if user means current directory, there is a "--exec-path=."

Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
exec_cmd.c