diff options
Diffstat (limited to 'install.sh')
-rw-r--r-- | install.sh | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -12,6 +12,12 @@ fugitive_write_template() { fugitive_install_hooks() { echo -n "Installing fugitive hooks scripts... " + (base64 -d | gunzip) >> .git/hooks/pre-commit <<EOF +#INCLUDE:pre-commit.sh# +EOF + (base64 -d | gunzip) >> .git/hooks/pre-receive <<EOF +#INCLUDE:pre-receive.sh# +EOF (base64 -d | gunzip) > .git/hooks/post-commit <<EOF #INCLUDE:post-commit.sh# EOF @@ -22,6 +28,8 @@ EOF tee -a .git/hooks/post-commit) >> .git/hooks/post-receive <<EOF #INCLUDE:html-gen.sh# EOF + chmod +x .git/hooks/pre-commit + chmod +x .git/hooks/pre-receive chmod +x .git/hooks/post-commit chmod +x .git/hooks/post-receive echo "done." @@ -89,14 +97,14 @@ EOF echo "done." echo -n "Importing files into git repository... " git add _templates/* _public/*.css >/dev/null - git commit -m "fugitive inital import" >/dev/null 2>&1 + git commit --no-verify -m "fugitive inital import" >/dev/null 2>&1 echo "done." echo "Writing dummy article (README) and adding it to the repos... " (base64 -d | gunzip) > _articles/README <<EOF #INCLUDE:README# EOF git add _articles/README - git commit -m "fugitive: README" >/dev/null + git commit --no-verify -m "fugitive: README" >/dev/null echo "done." fi echo "Installation complete, please set your blog url using" |