diff options
author | Arquivo Publico de Memoria Coletiva <arquivo@fluxo.info> | 2016-01-31 22:08:46 -0200 |
---|---|---|
committer | Arquivo Publico de Memoria Coletiva <arquivo@fluxo.info> | 2016-01-31 22:08:46 -0200 |
commit | d2b0295e862ea698e81306e2547e857aa4b92364 (patch) | |
tree | 2b500681e4dc55ee4e840b957a4736510bd0fb49 /bin/post-update | |
parent | 8d56f075eb2a5b4c61e21099866f93c061dd1e91 (diff) | |
download | arquivo-d2b0295e862ea698e81306e2547e857aa4b92364.tar.gz arquivo-d2b0295e862ea698e81306e2547e857aa4b92364.tar.bz2 |
Post-receive: receive.denyCurrentBranch
Diffstat (limited to 'bin/post-update')
-rwxr-xr-x | bin/post-update | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/post-update b/bin/post-update index 48a6a16cb27..47d4f79a9e1 100755 --- a/bin/post-update +++ b/bin/post-update @@ -1,4 +1,7 @@ #!/bin/sh +# +# Post-receive git hook +# cd .. unset GIT_DIR @@ -6,6 +9,7 @@ unset GIT_DIR if [ -d ".git/annex" ]; then git annex sync else + git config receive.denyCurrentBranch ignore git reset HEAD git checkout -f fi |