diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2015-05-21 11:19:12 -0400 |
---|---|---|
committer | Fred Hebert <mononcqc@ferd.ca> | 2015-05-21 11:19:12 -0400 |
commit | d91c37ed5cee67a44cc95b4a9e54e6e8582818a9 (patch) | |
tree | 935c93b9ace60640448b100cff01580bfbd2a9a9 /src/rebar_app_discover.erl | |
parent | ab1d2645576442309b69233c8bf82824f2c6cdbd (diff) | |
parent | efd2445c7424d118a4cef3b3db6c5e323ede2484 (diff) |
Merge pull request #443 from kovyl2404/singleapp-project-duplicated-hook
Run hooks for single application only once.
Diffstat (limited to 'src/rebar_app_discover.erl')
-rw-r--r-- | src/rebar_app_discover.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rebar_app_discover.erl b/src/rebar_app_discover.erl index 73401bc..4eda199 100644 --- a/src/rebar_app_discover.erl +++ b/src/rebar_app_discover.erl @@ -65,10 +65,10 @@ project_app_config(AppInfo, State) -> %% Here we check if the app is at the root of the project. %% If it is, then drop the hooks from the config so they aren't run twice maybe_reset_hooks(C, Dir, State) -> - case filename:dirname(rebar_dir:root_dir(State)) of + case ec_file:real_dir_path(rebar_dir:root_dir(State)) of Dir -> C1 = proplists:delete(provider_hooks, C), - proplists:delete(hooks, C1); + proplists:delete(post_hooks, proplists:delete(pre_hooks, C1)); _ -> C end. |