Allow a relative builtin template directory.
commitb953c77a5b55ff3b453c3500fbb42d97950fd8b4
authorJohannes Sixt <johannes.sixt@telecom.at>
Thu, 19 Apr 2007 16:34:03 +0000 (19 18:34 +0200)
committerJohannes Sixt <johannes.sixt@telecom.at>
Thu, 19 Apr 2007 16:35:27 +0000 (19 18:35 +0200)
treeaece480df2870a0df3817751293111bc26bdb1a9
parent390b6df11cc5359679227fe29a6d251b042a3ed7
Allow a relative builtin template directory.

In order to make git relocatable (i.e. not have the prefix compiled-in)
the template directory must depend on the location where this git instance
is found, which is GIT_EXEC_DIR.

The exec path is prepended only to the compiled-in default directory if it
is relative. Any relative directories that are specified via environment
variable or the --exec-dir switch are taken as is.

Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
builtin-init-db.c