Windows: set gitexecdir = $(bindir)
commite0e7163c215a6e74940cc1b66c7f4461359a7dc1
authorJohannes Sixt <johannes.sixt@telecom.at>
Tue, 15 Jul 2008 08:02:57 +0000 (15 10:02 +0200)
committerJohannes Sixt <johannes.sixt@telecom.at>
Tue, 15 Jul 2008 08:24:07 +0000 (15 10:24 +0200)
tree1bc4eef5c428f87253e5a11949343de991a350f3
parentb74e6c43182cbc71273030d3679850ce9db516e7
Windows: set gitexecdir = $(bindir)

The "dash-less" change aims to remove git commands from $PATH. It does so
by defining a GIT_EXEC_PATH that is different from $(bindir). On Windows
we want a relocatable installation of the git tool, so we cannot use an
absolute GIT_EXEC_PATH.  Therefore, the implementation of
builtin_exec_path() on Windows derives the exec-path from the command
invocation, and disregards GIT_EXEC_PATH. But this broke when
$(gitexecdir) became different from $(bindir), so we restore the earlier
behavior here.

This counteracts the aims of the "dash-less" change on Windows, but better
this way than having no working git at all.

Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
Makefile