git: make sure Git runs with a consistent and reproducible config
commitaf9c50c1c92828f58645dcaec8bc9d092928894f
authorKyle J. McKay <mackyle@gmail.com>
Mon, 17 Nov 2014 16:43:40 +0000 (17 08:43 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Mon, 17 Nov 2014 16:43:40 +0000 (17 08:43 -0800)
tree29bb752ede9cff26fbf8bad6e7b49bf5b1c8b314
parent4d1f3f8084a3e133c7d781616f038640df38abbb
git: make sure Git runs with a consistent and reproducible config

Arrange for GIT_CONFIG_NOSYSTEM=1 and GIT_ATTR_NOSYSTEM=1 to always
be set when running Git.

Addtionally cause XDG_CONFIG_HOME to be set to
$Config::chroot.'/var/empty' and HOME to be set to
$Config::chroot.'/etc/girocco' when running Git so that a consistent
set of config values will be seen.

After the $chroot database is set up (by running `make install`),
a $chroot/etc/girocco/.gitconfig file may be created (along with
its girocco parent directory) in order to set non-default values
for any desired config items when Girocco runs Git.
Girocco/Config.pm
bin/git-http-backend-verify
bin/git-shell-verify
install.sh
shlib.sh