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
|
@ -9,7 +9,7 @@ class Middleman::Templates::Local < Middleman::Templates::Base
|
||||||
# Just copy from the template path
|
# Just copy from the template path
|
||||||
# @return [void]
|
# @return [void]
|
||||||
def build_scaffold!
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue