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

Cookiecutter: Fix .git initalization bug during repo creation #250

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

natalialuzuriaga
Copy link
Collaborator

@natalialuzuriaga natalialuzuriaga commented Jan 31, 2025

Cookiecutter: Fix .git initalization bug during repo creation

Problem

While testing prod, I found a bug where .git directory was being created in .github instead of the project-level directory.

Solution

Edited post-gen hook to move location of the working directory back to project level directory before .git initialization occurs.

Result

  • When running cookiecutter . --directory=tierX, .git is created in project directory and successfully has initial commit in git log

Test Plan

Tested locally.

@natalialuzuriaga natalialuzuriaga marked this pull request as ready for review January 31, 2025 21:34
@natalialuzuriaga natalialuzuriaga changed the title Cookiecutter: Fix .git initalization bug during template creation Cookiecutter: Fix .git initalization bug during repo creation Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant