Skip to content
This repository was archived by the owner on Jul 14, 2021. It is now read-only.

generate repo doesn't git init #551

Closed
keen99 opened this issue Oct 5, 2015 · 0 comments
Closed

generate repo doesn't git init #551

keen99 opened this issue Oct 5, 2015 · 0 comments

Comments

@keen99
Copy link
Contributor

keen99 commented Oct 5, 2015

  * execute[initialize-git] action run (skipped due to not_if)
  * template[./chef-work/test/test-repo2/.gitignore] action create

Looking at the repo generate recipe - https://github.com/chef/chef-dk/blame/master/lib/chef-dk/skeletons/code_generator/recipes/repo.rb#L40

not_if { "#{repo_dir}/.gitignore" }

That pattern doesn't seem to work.

not_if {  File.exist?("#{repo_dir}/.gitignore") }

does however:

  * execute[initialize-git] action run
    - execute git init .
  * template[/Users/draistrick/git/fanduel/chef-work/test/test-repo4/.gitignore] action create

PR inbound....

keen99 added a commit to keen99/chef-dk that referenced this issue Oct 5, 2015

Verified

This commit was signed with the committer’s verified signature.
drupol Pol Dellaiera
ksubrama pushed a commit that referenced this issue Jan 11, 2016
New dummy software definition for a chef-fips client
@chef-boneyard chef-boneyard locked and limited conversation to collaborators Feb 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant