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:
Thomas Reynolds 2014-11-13 14:33:01 -08:00
commit 20552164aa

View file

@ -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