Print RUNTIME_PREFIX warning only when GIT_TRACE is set
commitc31440e711dd6d2910ad70c9ba0ed6f0e2292862
authorJohannes Sixt <j6t@kdbg.org>
Tue, 23 Feb 2010 11:42:56 +0000 (23 12:42 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Tue, 23 Feb 2010 12:59:51 +0000 (23 13:59 +0100)
treeee0ed5bc2432d2791f4ad4222243598f6f113d47
parent89f5b0c385af73ec27499c41d42c45e540203ef3
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: Johannes Schindelin <johannes.schindelin@gmx.de>
exec_cmd.c