diff --git a/presubmit_canned_checks.py b/presubmit_canned_checks.py index 045f71475..6a132f77d 100644 --- a/presubmit_canned_checks.py +++ b/presubmit_canned_checks.py @@ -1774,8 +1774,10 @@ def CheckForCommitObjects(input_api, output_api): output_api.PresubmitError( 'DEPS file indicates git submodule migration is in progress,\n' 'but the commit objects do not match DEPS entries.\n' - 'Update the following commit objects or DEPS entries:\n', - mismatch_entries) + 'Update the following commit objects with:\n' + '`git update-index --add --cacheinfo 160000,,`' + '\n' + 'or DEPS entries:\n', mismatch_entries) ] return []