mirror of
https://gerrit.googlesource.com/git-repo
synced 2026-11-15 08:47:11 +00:00
style: use import git_config everywhere
Align with Google style guides and `import git_config` as a module rather than import symbols out of it. Change-Id: I467f1f8c0868c53b71917ca0a9610606e1ce4d83 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/654811 Reviewed-by: Brian Gan <brgan@google.com> Commit-Queue: Mike Frysinger <vapier@google.com> Tested-by: Mike Frysinger <vapier@google.com>
This commit is contained in:
1 parent
e045aa19d8
commit
cc3f52cd6c
8 files changed
+65
-51
No files matched your search
+3
-4
@@ -60,8 +60,7 @@ from command import WORKER_BATCH_SIZE
|
||||
import error
|
||||
import event_log
|
||||
import git_command
|
||||
from git_config import GetUrlCookieFile
|
||||
from git_config import RepoConfig
|
||||
import git_config
|
||||
import git_refs
|
||||
import git_superproject
|
||||
from hooks import RepoHook
|
||||
@@ -2533,7 +2532,7 @@ later is required to fix a server side protocol bug.
|
||||
checkout_pref = getattr(manifest.manifestProject, "smart_sync", None)
|
||||
if not isinstance(checkout_pref, bool):
|
||||
checkout_pref = None
|
||||
user_pref = RepoConfig.ForUser().GetBoolean("sync.smartsync")
|
||||
user_pref = git_config.RepoConfig.ForUser().GetBoolean("sync.smartsync")
|
||||
default_allowed = (
|
||||
opt.smart_sync is None
|
||||
and not opt.smart_tag
|
||||
@@ -3652,7 +3651,7 @@ class PersistentTransport(xmlrpc.client.Transport):
|
||||
self.proxy = proxy
|
||||
|
||||
def request(self, host, handler, request_body, verbose=False):
|
||||
with GetUrlCookieFile(self.orig_host, not verbose) as (
|
||||
with git_config.GetUrlCookieFile(self.orig_host, not verbose) as (
|
||||
cookiefile,
|
||||
cookie_proxy,
|
||||
):
|
||||
|
||||
Reference in new issue
Block a user