mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 10:41:31 +00:00
Import gclient_utils for gclient_paths CheckCallAndFilter
CheckCallAndFilter isn't part of the global namespace, and as a result, this call was silently failing. BUG=1007553 Change-Id: Ie2f3135fc3d56be189d8be0fe996a068e0645705 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1823664 Auto-Submit: Robert Liao <robliao@chromium.org> Reviewed-by: Dirk Pranke <dpranke@chromium.org> Commit-Queue: Robert Liao <robliao@chromium.org>
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import gclient_utils
|
||||
import os
|
||||
import sys
|
||||
|
||||
@@ -71,8 +72,9 @@ def GetPrimarySolutionPath():
|
||||
if os.path.exists(repo_root_path):
|
||||
top_dir[0] = repo_root_path
|
||||
try:
|
||||
CheckCallAndFilter(["git", "rev-parse", "--show-toplevel"],
|
||||
print_stdout=False, filter_fn=filter_fn)
|
||||
gclient_utils.CheckCallAndFilter(["git", "rev-parse", "--show-toplevel"],
|
||||
print_stdout=False,
|
||||
filter_fn=filter_fn)
|
||||
except Exception:
|
||||
pass
|
||||
top_dir = top_dir[0]
|
||||
|
||||
Reference in New Issue
Block a user