mononoke: fix phases mononoke admin

Summary: It was failing because caching was not initialized. This diff fixes it

Reviewed By: mitrandir77

Differential Revision: D26374106

fbshipit-source-id: 7481c145c56db9080e065908a4b5e9b136a18317
This commit is contained in:
Stanislau Hlebik 2021-02-11 06:03:06 -08:00 committed by Facebook GitHub Bot
parent cf9c8bf29f
commit 5eccc41cef

View File

@ -93,8 +93,8 @@ pub async fn subcommand_phases<'a>(
matches: &'a MononokeMatches<'a>,
sub_m: &'a ArgMatches<'a>,
) -> Result<(), SubcommandError> {
let repo = args::open_repo(fb, &logger, &matches).await?;
args::init_cachelib(fb, &matches);
let repo = args::open_repo(fb, &logger, &matches).await?;
let ctx = CoreContext::new_with_logger(fb, logger.clone());
match sub_m.subcommand() {