summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--install.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/install.sh b/install.sh
index a24f3c3..7cd45a2 100644
--- a/install.sh
+++ b/install.sh
@@ -28,6 +28,10 @@ fugitive_install() {
if [ "$1" != "" ]; then DIR="$1"; fi
if [ ! -d "$DIR" ]; then mkdir -p "$DIR"; fi
cd "$DIR"
+ if [ -d ".git" ]; then
+ echo "There's already a git repository here, aborting install."
+ exit 1
+ fi
echo -n "Creating new git repository... "
git init >/dev/null
echo "done."