Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cookiecutter overwrite if exists option #19

Open
NathanUrwin opened this issue Mar 15, 2018 · 0 comments
Open

Fix cookiecutter overwrite if exists option #19

NathanUrwin opened this issue Mar 15, 2018 · 0 comments

Comments

@NathanUrwin
Copy link
Owner

$ cookiecutter gh:nathanurwin/cookiecutter-git --no-input -f
Removing '/home/user/Projects/.github/cookiecutter-git-demo/NOTICE'...
git init
Reinitialized existing Git repository in /home/user/Projects/.github/cookiecutter-git-demo/.git/

git status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working tree clean

git add -A
git status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working tree clean

1: ['git', 'commit', '-m', 'Initial commit']
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working tree clean

Traceback (most recent call last):
  File "/tmp/tmp4emWQB.py", line 201, in <module>
    main()
  File "/tmp/tmp4emWQB.py", line 196, in main
    setup_git_repo()
  File "/tmp/tmp4emWQB.py", line 123, in setup_git_repo
    run(['git', 'commit', '-m', 'Initial commit'])
  File "/tmp/tmp4emWQB.py", line 34, in run
    raise error
subprocess.CalledProcessError: Command '['git', 'commit', '-m', 'Initial commit']' returned non-zero exit status 1
ERROR: Stopping generation because post_gen_project hook script didn't exit successfully
Hook script failed (exit status: 1)
@NathanUrwin NathanUrwin self-assigned this Jun 19, 2018
@NathanUrwin NathanUrwin changed the title Fix overwrite if exists option Fix cookiecutter overwrite if exists option Jul 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant