From 0de7e2c3a3a5d27036d0cf7e1bff874f481d3096 Mon Sep 17 00:00:00 2001 From: Rob Rodriguez Date: Thu, 12 Oct 2023 15:33:28 -0700 Subject: [PATCH] Fixing error with update command, adding update to end of init command --- secureli/main.py | 1 + secureli/services/updater.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/secureli/main.py b/secureli/main.py index b0d0344c..603bb171 100644 --- a/secureli/main.py +++ b/secureli/main.py @@ -64,6 +64,7 @@ def init( """ SecureliConfig.FOLDER_PATH = Path(directory) container.initializer_action().initialize_repo(Path(directory), reset, yes) + update() @app.command() diff --git a/secureli/services/updater.py b/secureli/services/updater.py index e5be92fd..33649f38 100644 --- a/secureli/services/updater.py +++ b/secureli/services/updater.py @@ -54,7 +54,7 @@ def update_hooks( output = "No changes necessary.\n" if update_result.successful and update_result.output: - prune_result = self.pre_commit.remove_unused_hooks() + prune_result = self.pre_commit.remove_unused_hooks(folder_path) output = output + "\nRemoving unused environments:\n" + prune_result.output return UpdateResult(successful=update_result.successful, output=output)