summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Smith <dizzyd@dizzyd.com>2009-12-31 19:28:53 -0700
committerDave Smith <dizzyd@dizzyd.com>2009-12-31 19:28:53 -0700
commita46be8cec1af5222e4b8c61e3e62ac6be8c4b90e (patch)
treecb0fae5ac57f8196c60d38daf1db7569ccaebe31
parentbd090f0db2a2afaf98e6838501430a47eb2c2a02 (diff)
Use new rebar_config API to avoid having to actually delete/change the config any
-rw-r--r--src/rebar_subdirs.erl8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/rebar_subdirs.erl b/src/rebar_subdirs.erl
index d4563a2..80a1ee3 100644
--- a/src/rebar_subdirs.erl
+++ b/src/rebar_subdirs.erl
@@ -35,10 +35,6 @@
preprocess(Config, _) ->
%% Get the list of subdirs specified in the config (if any).
Cwd = rebar_utils:get_cwd(),
- Subdirs = [filename:join(Cwd, Dir) || Dir <- rebar_config:get(Config, sub_dirs, [])],
-
- %% Filter out the subdirs from the config so that processing in the
- %% subdirs doesn't try to reprocess
- Config2 = rebar_config:delete(Config, sub_dirs),
- {ok, Config2, Subdirs}.
+ Subdirs = [filename:join(Cwd, Dir) || Dir <- rebar_config:get_local(Config, sub_dirs, [])],
+ {ok, Config, Subdirs}.