Update tickets only for specific branches
-
Nikhil Gupte
I managed to use the following work-around in the post-receive hook:
if ref.ends_with?('master') Configuration.load(CONFIG_DIR) TicketUpdate.new(rev_old, rev_new, ref).parse.send_changes end -
gwik
- State changed from new to open
Do you use the merge command to update your stagin and production branches ? If you do it's bug.
The git --first-parent option I use, should garantee that the updates are not replayed when you push a merge.
What git version do you use on the remote ?
-
Nikhil Gupte
My git version is 1.6.1 (local and remote)
I have local mater, production and staging branches and the same on remote.
I make changes to master, push to my remote master for my colleagues. Once a bunch of changes are done, I merge local master into my local staging which then I push to my remote staging. Once QA approves of staging, I merge my local staging into my local production and push it to my remote production.
I got around the problem of multiple updates to my LH tickets by only passing the commits on the remote master to the hook.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.