Hi All,
After Pushing the changes to branch and also for successful merged the pull-request , for both the cases control will comes to PostReceiveRepositoryHook's public void postReceive().
How can we differentiate. whether the postReceive() called for pushing or merging.
Thanks
Anil
For the case with the pull request, you will see one of these refs in the refChanges collection.
I didn't find the differences...I debugged it and for both same set of variables are there..how can I get to know whether my post-hook called after push or after pull-request.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.