diff --git a/secureli/main.py b/secureli/main.py index c76d4791..4ea1942d 100644 --- a/secureli/main.py +++ b/secureli/main.py @@ -76,6 +76,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)