git-codereview: fix TestCurrentBranch

Fixes #9379

Change-Id: Ia9122464574355c01e6c457087b0eef9375826e2
Reviewed-on: https://go-review.googlesource.com/1772
Reviewed-by: Chris Manghane <cmang@golang.org>