Merge pull request #1404 from blech75/ignore_git_dir_on_init
exclude .git folder when init'ing a local template
This commit is contained in:
commit
20552164aa
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ class Middleman::Templates::Local < Middleman::Templates::Base
|
|||
# Just copy from the template path
|
||||
# @return [void]
|
||||
def build_scaffold!
|
||||
directory options[:template].to_s, location, force: options[:force]
|
||||
directory options[:template].to_s, location, force: options[:force], exclude_pattern: /\.git\/.*/
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue