summaryrefslogtreecommitdiff
path: root/src/rebar_templater.erl
diff options
context:
space:
mode:
authorJared Morrow <jared@basho.com>2014-03-11 21:26:15 +0000
committerJared Morrow <jared@basho.com>2014-03-11 21:26:15 +0000
commit47c089aa806653d826b8bc5f4b8dc29724af1da7 (patch)
treee8de872fa1f72bad757e1f02a7fee23e136d481a /src/rebar_templater.erl
parentfa1a2b53fd66ae833586729a2122a31ac1f29b0b (diff)
parent415d872730daf58a91b6fbd6d3eac1f015cb9c24 (diff)
Merge branch 'tuncer-auto-recursion'
Diffstat (limited to 'src/rebar_templater.erl')
-rw-r--r--src/rebar_templater.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rebar_templater.erl b/src/rebar_templater.erl
index 43bb8da..fef4627 100644
--- a/src/rebar_templater.erl
+++ b/src/rebar_templater.erl
@@ -245,7 +245,8 @@ find_disk_templates(Config) ->
HomeFiles = rebar_utils:find_files(filename:join([os:getenv("HOME"),
".rebar", "templates"]),
?TEMPLATE_RE),
- LocalFiles = rebar_utils:find_files(".", ?TEMPLATE_RE),
+ Recursive = rebar_config:is_recursive(Config),
+ LocalFiles = rebar_utils:find_files(".", ?TEMPLATE_RE, Recursive),
[{file, F} || F <- OtherTemplates ++ HomeFiles ++ LocalFiles].
find_other_templates(Config) ->