Redirect stderr for git rev-parse

If not in a git directory the git warning messages will be printed.
These warnings shouldn't be shown to users and can make things
confusing.

Change-Id: I6b872a7407141edeed33ac6157022743a2919f6d
(cherry picked from commit 029044826668b347cd1d84c4490dc8cb9ca6ac1e)
Set .getreview for 0.7.x branch

Change-Id: I3782bee549bdd5638638234d612d45207b8aad74