3 while read oldrev newrev refname ; do
4 if [ "$refname" == "refs/heads/gitconfig" ] ; then
5 config_hash=$(git ls-tree $newrev | grep config | gawk '{print $3}')
6 if [[ "$config_hash" != "" ]] ; then
7 git cat-file blob "$config_hash" | while read line ; do
10 git config "${key}" "${value}"