Gerrit email notification for push to master branch

Hello I am trying to setup email notifications for push to gerrit .
I am receiving emails when I push to HEAD:refs/for/master or the review branch on gerrit

Ex:- git push gerrit HEAD:refs/for/master Triggers email notifications based on settings in Watch Projects under Settings in Gerrit webpage.

  • Gerrit doesn't accept newly created change/branch
  • Gerrit replicating to gitolite fails
  • Gerrit Code Review error - you are not committer
  • How to create a new Patchset in Gerrit?
  • Grep functionality with Git Log command
  • How to install and use gerrit with eclipse?
  • But , when I do push to master –

    git push gerrit master email notifications are not being triggered .

    Can anyone please help me setup email notifications for pushes to master branch also on gerrit

  • Is there a way to add a submodule to a git repo that share a directory structure
  • Git - Create a new remote branch out of an old commit
  • Copy directory from another branch
  • How do I add files from another directory with git?
  • How can I duplicate a git-svn cloned repository, so that git svn dcommit still works
  • In git, what is the difference between merge --squash and rebase?
  • One Solution collect form web for “Gerrit email notification for push to master branch”

    According to Gerrit documentation:

    Gerrit can automatically notify users by email when new changes are
    uploaded for review, after comments have been posted on a change, or
    after the change has been submitted to a branch.

    So it’s not possible to trigger an automatic e-mail notification for changes that have been pushed to a repository without review. However, as described here, you can use ref-updated hook and handle sending e-mails manually:


    Called whenever a ref has been updated.

    ref-updated –oldrev –newrev –refname –project –submitter

    Git Baby is a git and github fan, let's start git clone.