git-codereview: fix .netrc authentication

.netrc credentials were clobbered by missing Git cookiefile. The command
to get the output of `git config http.cookiefile` was exiting the
program before it got a chance to see if any .netrc file were defined.

Remove redundancy in handling error of `git config remote.origin.url`.

Change-Id: I1e08710b4e9b154b8fa5ebfb3c2ce72ef4dd2360
Reviewed-on: https://go-review.googlesource.com/1867
Reviewed-by: Andrew Gerrand <adg@golang.org>
2 files changed
tree: 2b93f81ad843b32eb4277bbfb12dab4d2e46b163
  1. README
  2. git-codereview/