Fix filepath issue within ParseGitSubmodules()

The filepath already has cwd appended so the command doesn't need cwd.

Change-Id: I20c6fea27aee963e90cdb8a15cb087771dafa0fa
Bug: 1472143
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/4771942
Commit-Queue: Scott Lee <ddoman@chromium.org>
Auto-Submit: Aravind Vasudevan <aravindvasudev@google.com>
Reviewed-by: Scott Lee <ddoman@chromium.org>
Commit-Queue: Aravind Vasudevan <aravindvasudev@google.com>
changes/42/4771942/2
Aravind Vasudevan 2 years ago committed by LUCI CQ
parent 2541006811
commit c91e2aaa9c

@ -966,7 +966,7 @@ class Dependency(gclient_utils.WorkItem, DependencySettings):
# Get .gitmodules fields
gitmodules_entries = subprocess2.check_output(
['git', 'config', '--file', filepath, '-l'], cwd=cwd).decode('utf-8')
['git', 'config', '--file', filepath, '-l']).decode('utf-8')
gitmodules = {}
for entry in gitmodules_entries.splitlines():

Loading…
Cancel
Save