X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=server%2Fpost-receive-gitconfig;fp=server%2Fpost-receive-gitconfig;h=46ab3e4df164359c87a0402a769c14d7910b7c99;hb=f123e6ac7088820ee7b5cd5c7632683b67bd8c7f;hp=c80322ad096f1c54bb039d8f4d40060a467d5552;hpb=8af2b2555fbb4fe83e48c400d583b420cb27c26b;p=git-central.git diff --git a/server/post-receive-gitconfig b/server/post-receive-gitconfig index c80322a..46ab3e4 100644 --- a/server/post-receive-gitconfig +++ b/server/post-receive-gitconfig @@ -1,4 +1,16 @@ #!/bin/sh +# +# Auto-deploys the contents of the gitconfig branch to $GIT_DIR. +# +# The config file is handled specially--instead of the $GIT_DIR's config file +# being copied over entirely, the gitconfig:config is evaluated line by line +# with calls to `git config`. This means you can have settings in +# $GIT_DIR/config that are not in the gitconfig:config and they will not be +# overwritten. Deleting $GIT_DIR/config entries has to be manually. +# +# Hooks are copied over entirely, but old ones are not deleted. Deleting +# existing hooks has to be done manually. +# while read oldrev newrev refname ; do if [ "$refname" == "refs/heads/gitconfig" ] ; then