Skip to content

Commit

Permalink
Add newly created files to the repository
Browse files Browse the repository at this point in the history
  • Loading branch information
ericof committed May 17, 2024
1 parent fe55985 commit 72d37a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion project/hooks/post_gen_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ def main():

# Do a second run add newly created files
if initialize_git:
handle_git_initialization(context, output_dir)
repo = git.repo_from_path(output_dir)
repo.git.add(output_dir)

msg = """
[bold blue]{{ cookiecutter.title }}[/bold blue]
Expand Down

0 comments on commit 72d37a7

Please sign in to comment.