Commit 78f5c164 authored by szager@chromium.org's avatar szager@chromium.org

Set config option for diff.ignoreSubmodules to 'all'

Review URL: https://chromiumcodereview.appspot.com/10636015

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@143731 0039d316-1c4b-4281-b951-d872f2087c98
parent b295158e
......@@ -200,10 +200,14 @@ class GitWrapper(SCMWrapper):
'git', 'config', '-f', '$toplevel/.git/config',
'submodule.$name.ignore', 'all']
cmd = ['git', 'submodule', '--quiet', 'foreach', ' '.join(submod_cmd)]
cmd2 = ['git', 'config', 'diff.ignoreSubmodules', 'all']
try:
gclient_utils.CheckCallAndFilter(
cmd, cwd=self.checkout_path, print_stdout=False,
filter_fn=lambda x: None)
gclient_utils.CheckCallAndFilter(
cmd2, cwd=self.checkout_path, print_stdout=False,
filter_fn=lambda x: None)
except subprocess2.CalledProcessError:
# Not a fatal error, or even very interesting in a non-git-submodule
# world. So just keep it quiet.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment