diff --git a/jupyter_releaser/cli.py b/jupyter_releaser/cli.py index 96f091cf..3f0a46c0 100644 --- a/jupyter_releaser/cli.py +++ b/jupyter_releaser/cli.py @@ -88,6 +88,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]