summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorp4bl0 <r@uzy.me>2011-08-14 02:36:14 +0200
committerp4bl0 <r@uzy.me>2011-08-14 02:36:14 +0200
commit15b9581220518ac73b59e508025469207cebc48f (patch)
tree6c6ada82780a786eef768c82786a3ad6fe479354
parent1f553d2f7c33aea2420dbb082a95509e0e279bbe (diff)
bugfix: do not try to git init if there already a git repos (oops ^^)
-rw-r--r--install.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/install.sh b/install.sh
index c837120..68f00ec 100644
--- a/install.sh
+++ b/install.sh
@@ -57,10 +57,11 @@ fugitive_install() {
echo "Okay, aborting."
exit 1
fi
+ else
+ echo -n "Creating new git repository... "
+ git init >/dev/null
+ echo "done."
fi
- echo -n "Creating new git repository... "
- git init >/dev/null
- echo "done."
fugitive_install_config "$1"
fugitive_install_hooks "$1"
echo -n "Preventing git to track temporary and generated files... "