diff options
Diffstat (limited to 'src/rebar_hooks.erl')
-rw-r--r-- | src/rebar_hooks.erl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rebar_hooks.erl b/src/rebar_hooks.erl index 6db3c77..f17e815 100644 --- a/src/rebar_hooks.erl +++ b/src/rebar_hooks.erl @@ -11,8 +11,9 @@ atom() | {atom(), atom()} | string(), [providers:t()], rebar_app_info:t(), rebar_state:t()) -> ok. run_all_hooks(Dir, Type, Command, Providers, AppInfo, State) -> - run_provider_hooks(Dir, Type, Command, Providers, rebar_app_info:opts(AppInfo), State), - run_hooks(Dir, Type, Command, rebar_app_info:opts(AppInfo), State). + State1 = rebar_state:current_app(State, AppInfo), + run_provider_hooks(Dir, Type, Command, Providers, rebar_app_info:opts(AppInfo), State1), + run_hooks(Dir, Type, Command, rebar_app_info:opts(AppInfo), State1). run_all_hooks(Dir, Type, Command, Providers, State) -> run_provider_hooks(Dir, Type, Command, Providers, rebar_state:opts(State), State), |