diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2015-08-07 14:58:19 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2015-08-07 14:58:19 -0300 |
commit | 1e381c5335b451a493a333b9639774e3d991a4de (patch) | |
tree | 353ab729c1ecb581bd38260155b6ba9d78526f2b /ikiwiki/bin | |
parent | 29c9ddc599a6cc0fe6f10ce15285f39d0d016acf (diff) | |
download | templates-1e381c5335b451a493a333b9639774e3d991a4de.tar.gz templates-1e381c5335b451a493a333b9639774e3d991a4de.tar.bz2 |
Adds post-receive hook and fix post-update
Diffstat (limited to 'ikiwiki/bin')
-rwxr-xr-x | ikiwiki/bin/post-update | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ikiwiki/bin/post-update b/ikiwiki/bin/post-update index 3098dab..beed524 100755 --- a/ikiwiki/bin/post-update +++ b/ikiwiki/bin/post-update @@ -2,7 +2,13 @@ cd .. unset GIT_DIR -git annex sync + +if [ -d ".git/annex" ]; then + git annex sync +else + git reset HEAD + git checkout -f +fi cd - exec git update-server-info |