git-cl: respect http.cookieFile for finding gitcookies

This allows people to configure their gitcookies file to be
whereever they want. As long as it actually exists and has
credentials in it, we'll accept it, just like git itself.

Change-Id: I4aa4806ddca0e61b28b003b0d3bc486407c13ab4
Reviewed-on: https://chromium-review.googlesource.com/951917
Reviewed-by: Robbie Iannucci <iannucci@chromium.org>
Commit-Queue: Aaron Gable <agable@chromium.org>
diff --git a/tests/git_cl_test.py b/tests/git_cl_test.py
index d41306e..ae7621c 100755
--- a/tests/git_cl_test.py
+++ b/tests/git_cl_test.py
@@ -3455,6 +3455,7 @@
     self.mock(git_cl._GitCookiesChecker, 'get_hosts_with_creds',
               lambda _, include_netrc=False: [])
     self.calls = [
+      ((['git', 'config', '--path', 'http.cookiefile'],), CERR1),
       ((['git', 'config', '--global', 'http.cookiefile'],), CERR1),
       (('os.path.exists', '~/.netrc'), True),
       (('ask_for_data', 'Press Enter to setup .gitcookies, '
@@ -3475,6 +3476,7 @@
     self.mock(git_cl._GitCookiesChecker, 'get_hosts_with_creds',
               lambda _, include_netrc=False: [])
     self.calls = [
+      ((['git', 'config', '--path', 'http.cookiefile'],), CERR1),
       ((['git', 'config', '--global', 'http.cookiefile'],),
        '/custom/.gitcookies'),
       (('os.path.exists', '/custom/.gitcookies'), False),