You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I am trying to trigger Git Hooks from the use of Sourcetree's embedded GitFlow functionality.
Basically, I am trying to do something very simple: run a git hook that tags the Master branch after a successful merge (using, for example, the "Release" in GitFlow).
The script works and triggers fine if I do the merge manually. However, when using GitFlow "Finish Release", the script never triggers; even though I understand it is doing precisely a merge.
What gives?
Hi
Does the hook trigger if you run the Git flow commands from the terminal or command line?
If it does, I would expect Sourcetree to do the same but if it is Git-Flow failing then not.
Perhaps this is of help? https://stackoverflow.com/questions/48524221/git-flow-avh-edition-hooks-are-not-executed
Git-Flow also seems to have its own hook mechanism
https://github.com/petervanderdoes/gitflow-avh/tree/develop/hooks
https://github.com/jaspernbrouwer/git-flow-hooks
You are correct; I would expect running "git flow release finish" to trigger the commit/merge hooks, but they do not.
Git Flow runs on its own hooks, such as:
post-flow-hotfix-finish
post-flow-release-finish
pre-flow-release-finish
Thanks for the tip.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.