diff --git a/hooks/post_gen_project.sh b/hooks/post_gen_project.sh index 5675985..28acb51 100755 --- a/hooks/post_gen_project.sh +++ b/hooks/post_gen_project.sh @@ -1,5 +1,7 @@ #!/usr/bin/env sh -git init -git add . -git commit -a -m "Initial UI-Cookiecutter Commit." +if ! [ ${IGNORE_GIT} ]; then + git init + git add . + git commit -a -m "Initial UI-Cookiecutter Commit." +fi \ No newline at end of file diff --git a/tox.ini b/tox.ini index 6853cc2..6d1bf6e 100644 --- a/tox.ini +++ b/tox.ini @@ -16,6 +16,8 @@ deps = commands = {posargs} [testenv:checkbuild] +setenv = + IGNORE_GIT=1 commands = rm -rf {envdir}/cafe-ui cookiecutter --no-input --output-dir {envdir} {toxinidir}