diff --git a/jupyter_releaser/cli.py b/jupyter_releaser/cli.py index 63ae5e8e..3800785b 100644 --- a/jupyter_releaser/cli.py +++ b/jupyter_releaser/cli.py @@ -93,6 +93,12 @@ def invoke(self, ctx): super().invoke(ctx) # Handle after hooks + + # Re-read config if we just did a git checkout + if cmd_name == "prep-git": + config = util.read_config() + hooks = config.get("hooks", {}) + after = f"after-{cmd_name}" if after in hooks: after_hooks = hooks[after]