diff options
-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 |