diff options
author | Arquivo Publico de Memoria Coletiva <arquivo@fluxo.info> | 2016-05-04 09:19:44 -0300 |
---|---|---|
committer | Arquivo Publico de Memoria Coletiva <arquivo@fluxo.info> | 2016-05-04 09:19:44 -0300 |
commit | 3176cac2ab93d83bec72ddb5d93afc8971ccc466 (patch) | |
tree | e66c73468727f30ac3d319eb9aae3efa67e67eff /bin/post-receive | |
parent | 5feb18e86eb826b105f58f53d3da5fc9c71d52f5 (diff) | |
download | arquivo-3176cac2ab93d83bec72ddb5d93afc8971ccc466.tar.gz arquivo-3176cac2ab93d83bec72ddb5d93afc8971ccc466.tar.bz2 |
Test deployment without git reset
Diffstat (limited to 'bin/post-receive')
-rwxr-xr-x | bin/post-receive | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/bin/post-receive b/bin/post-receive new file mode 100755 index 00000000000..ff7cf507cd5 --- /dev/null +++ b/bin/post-receive @@ -0,0 +1,20 @@ +#!/bin/sh +# +# Post-receive git hook +# + +cd .. +unset GIT_DIR + +if [ -d ".git/annex" ]; then + git annex sync +else + git config receive.denyCurrentBranch ignore + #git reset HEAD + git checkout -f +fi + +git submodule update --init --recursive + +cd - +exec git update-server-info |