diff options
| -rw-r--r-- | git-codereview/api.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-codereview/api.go b/git-codereview/api.go index 8440cb5..a3375ea 100644 --- a/git-codereview/api.go +++ b/git-codereview/api.go @@ -145,7 +145,7 @@ func loadAuth() { // First look in Git's http.cookiefile, which is where Gerrit // now tells users to store this information. - if cookieFile, _ := trimErr(cmdOutputErr("git", "config", "--path", "http.cookiefile")); cookieFile != "" { + if cookieFile, _ := trimErr(cmdOutputErr("git", "config", "--path", "--get-urlmatch", "http.cookiefile", auth.url)); cookieFile != "" { data, _ := ioutil.ReadFile(cookieFile) maxMatch := -1 for _, line := range lines(string(data)) { |
