[gclient] Don't inherit git_dependency from parent

If a child repository is not cloned, gclient will assume git_dependency
to match parent, which can be incorrect.

R=gavinmak

Change-Id: Icb464524f5dcf2e18ccae1db00c69963ffd9ef02
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/5506655
Auto-Submit: Josip Sokcevic <sokcevic@chromium.org>
Reviewed-by: Gavin Mak <gavinmak@google.com>
Commit-Queue: Gavin Mak <gavinmak@google.com>
changes/55/5506655/2
Josip Sokcevic 1 year ago committed by LUCI CQ
parent de547a1031
commit d73a92619e

@ -797,8 +797,7 @@ class Dependency(gclient_utils.WorkItem, DependencySettings):
should_recurse=name in self.recursedeps,
relative=use_relative_paths,
condition=condition,
protocol=self.protocol,
git_dependencies_state=self.git_dependencies_state))
protocol=self.protocol))
# TODO(crbug.com/1341285): Understand why we need this and remove
# it if we don't.
@ -2243,8 +2242,7 @@ it or fix the checkout.
should_recurse=False,
relative=None,
condition=None,
protocol=self.protocol,
git_dependencies_state=self.git_dependencies_state))
protocol=self.protocol))
if modified_files and self._options.delete_unversioned_trees:
print(
'\nWARNING: \'%s\' is no longer part of this client.\n'

Loading…
Cancel
Save