diff options
author | Tristan Sloughter <tristan.sloughter@gmail.com> | 2014-11-23 13:17:22 -0600 |
---|---|---|
committer | Tristan Sloughter <tristan.sloughter@gmail.com> | 2014-11-23 13:17:22 -0600 |
commit | b8ada39c3661ccb2875fac54a2b916af9fb6ccff (patch) | |
tree | 83a7a470d92360e903c10bc603fd49f6b36a043b | |
parent | 38f40f2cc25d10bde2c7178ba500a127687da0ec (diff) | |
parent | 45ac9eb94db65e175ea943e1c70c3d466da2e3e5 (diff) |
Merge pull request #19 from rebar/drop-template-cwd-search
Drop search for templates in cwd
-rw-r--r-- | src/rebar_templater.erl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rebar_templater.erl b/src/rebar_templater.erl index 4d871cd..f4cf3d2 100644 --- a/src/rebar_templater.erl +++ b/src/rebar_templater.erl @@ -273,8 +273,7 @@ find_disk_templates(State) -> Home = rebar_utils:home_dir(), HomeFiles = rebar_utils:find_files(filename:join([Home, ?CONFIG_DIR, "templates"]), ?TEMPLATE_RE), - LocalFiles = rebar_utils:find_files(".", ?TEMPLATE_RE, true), - [{file, F} || F <- OtherTemplates ++ HomeFiles ++ LocalFiles]. + [{file, F} || F <- OtherTemplates ++ HomeFiles]. %% Fetch template indexes that sit on disk in custom areas find_other_templates(State) -> |