From f71626c7ecade5cf26baa9cb318cdd1c3d0c84c1 Mon Sep 17 00:00:00 2001 From: p4bl0 Date: Tue, 10 Aug 2010 22:25:11 +0200 Subject: now preventing commit when zero article (for real ^^) and push when fugitive.blog-url not set --- install.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'install.sh') diff --git a/install.sh b/install.sh index 5a2b2d2..2801336 100644 --- a/install.sh +++ b/install.sh @@ -12,6 +12,12 @@ fugitive_write_template() { fugitive_install_hooks() { echo -n "Installing fugitive hooks scripts... " + (base64 -d | gunzip) >> .git/hooks/pre-commit <> .git/hooks/pre-receive < .git/hooks/post-commit <> .git/hooks/post-receive </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 </dev/null + git commit --no-verify -m "fugitive: README" >/dev/null echo "done." fi echo "Installation complete, please set your blog url using" -- cgit v1.2.3