diff --git a/init.sh b/init.sh
index f6f7c19..c049e0b 100755
--- a/init.sh
+++ b/init.sh
@@ -13,8 +13,8 @@ fi
 REPLACESTRING="s+RENAME_ME+$1+g"
 echo $REPLACESTRING
 
-find . -type f -not -path ".git" -exec sed -i $REPLACESTRING {} +
-find . -type f -not -path ".git" -exec sed -i $REPLACESTRING {} +
+find . -type f -not -path ".git/*" -exec sed -i $REPLACESTRING {} +
+find . -type f -not -path ".git/*" -exec sed -i $REPLACESTRING {} +
 
 find src -type d -name '*RENAME_ME*' -exec sh -c 'x="{}"; NEWSTR=$(echo "$x" | sed "s/RENAME_ME/'$1'/"); mv "$x" "$NEWSTR"' \;