mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 18:51:29 +00:00
Restrict fsmonitor warning to MacOS
R=sokcevic Change-Id: Ie1aea3764b7e90ae0337c4a223ca6cba3ff1b499 Bug: 1475405 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/4833351 Reviewed-by: Josip Sokcevic <sokcevic@chromium.org> Commit-Queue: Aravind Vasudevan <aravindvasudev@google.com>
This commit is contained in:
committed by
LUCI CQ
parent
427f0f43ad
commit
ce60c47f5d
@@ -421,7 +421,7 @@ def warn_submodule():
|
||||
"""Print warnings for submodules."""
|
||||
# TODO(crbug.com/1475405): Warn users if the project uses submodules and
|
||||
# they have fsmonitor enabled.
|
||||
if is_fsmonitor_enabled():
|
||||
if sys.platform.startswith('darwin') and is_fsmonitor_enabled():
|
||||
print(colorama.Fore.RED)
|
||||
print('WARNING: You have fsmonitor enabled. There is a major issue '
|
||||
'resulting in git diff-index returning wrong results. Please '
|
||||
|
||||
Reference in New Issue
Block a user