Print RUNTIME_PREFIX warning only when GIT_TRACE is set
commitaa0945701e39cf099ca9c28f79e239359781e4f6
authorJohannes Sixt <j6t@kdbg.org>
Tue, 23 Feb 2010 11:42:56 +0000 (23 12:42 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 23 Feb 2010 21:20:15 +0000 (23 13:20 -0800)
tree907d3d10e373473abb9ab18eaa6e5c78fbbf2c67
parente923eaeb901ff056421b9007adcbbce271caa7b6
Print RUNTIME_PREFIX warning only when GIT_TRACE is set

When RUNTIME_PREFIX is enabled, the installation prefix is derived by
trying a limited set of known locations where the git executable can
reside. If none of these is found, a warning is emitted.

When git is built in a directory that matches neither of these known names,
the warning would always be emitted when the uninstalled executable is run.
This is a problem on Windows, where gitk picks the uninstalled git when
invoked from the build directory and gets confused by the warning.

Print the warning only when GIT_TRACE is set.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
exec_cmd.c