fix http conditional

Summary: Fix bug in httpenabled check. Only local repo has edenapi attribute and not remote.

Reviewed By: quark-zju

Differential Revision: D31059979

fbshipit-source-id: c77f1455949f28b081f8fef86aeb83ecd1c3ceba
This commit is contained in:
Carolyn Busch 2021-09-22 10:21:45 -07:00 committed by Facebook GitHub Bot
parent 7a9cab0157
commit f8d6e362da

View File

@ -302,7 +302,7 @@ def _findcommonheadsnew(
isselectivepull
and ui.configbool("pull", "httpbookmarks")
and ui.configbool("exchange", "httpcommitlookup")
and getattr(remote, "edenapi", None) is not None
and local.nullableedenapi is not None
)
from .bookmarks import selectivepullbookmarknames, remotenameforurl