Skip to content

Commit

Permalink
Merge pull request #85 from blink1073/allow-post-prep-git
Browse files Browse the repository at this point in the history
Allow after-prep-git to work
  • Loading branch information
Steven Silvester authored Jul 21, 2021
2 parents 2d2f2dc + a07a331 commit 6d825e1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions jupyter_releaser/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 6d825e1

Please sign in to comment.