git-codereview: set x.mailed tag to mailed commit instead of HEAD

Currently, git codereview mail sets the <branch>.mailed tag to the
current HEAD, even if mail was given a different hash on the command

Fix this to set the <branch>.mailed tag to the commit hash that was
sent to Gerrit.

Change-Id: Ie0aa1512610121ba508b6668f21b50a0ca1c70f8
Reviewed-by: Josh Bleecher Snyder <>
Reviewed-by: Russ Cox <>
1 file changed