3 # Girocco "global" git config convenience tool
4 # Usage: girocco-config.sh <git config args>
5 # The purpose of this tool is simply to provide a convenient wrapper
6 # for adjusting the config values in the $chroot/etc/girocco/.gitconfig file.
7 # Directory permissions need to be manipulated before and after and it's
8 # clumsy to have to provide the longish --file=... argument.
9 # Hence this script. it's semantically just an alias for running:
10 # git config --file="$Girocco::Config::chroot/etc/girocco/.gitconfig" "$@"
16 trap 'chmod a-w "$cfg_chroot/etc/girocco"' EXIT
26 chmod u
+w
"$cfg_chroot/etc/girocco"
27 git config
--file="$cfg_chroot/etc/girocco/.gitconfig" "$@" && ec
=0 || ec
=$?
28 chmod a-w
"$cfg_chroot/etc/girocco"