Get rid of place-holder for commit-msg hook.

This caused problems for repo-based projects that need to install the
standard Change-Id commit-msg hook.

With the commit-msg hook gone, we can also reinstate the --template
argument to 'git clone'.

BUG=235215
R=iannucci@chromium.org, ilevy@chromium.org, maruel@chromium.org

Review URL: https://codereview.chromium.org/18083033

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@211464 0039d316-1c4b-4281-b951-d872f2087c98
experimental/szager/collated-output
szager@chromium.org 12 years ago
parent 4aad18539d
commit ecb7542302

@ -786,7 +786,10 @@ class GitWrapper(SCMWrapper):
# git clone doesn't seem to insert a newline properly before printing
# to stdout
print('')
clone_cmd = ['-c', 'core.deltaBaseCacheLimit=2g', 'clone', '--progress']
template_path = os.path.join(
os.path.dirname(THIS_FILE_PATH), 'git-templates')
clone_cmd = ['-c', 'core.deltaBaseCacheLimit=2g', 'clone', '--progress',
'--template=%s' % template_path]
if self.cache_dir:
clone_cmd.append('--shared')
if revision.startswith('refs/heads/'):

@ -1,4 +0,0 @@
#!/bin/bash
[ -e "build/git-hooks/commit-msg" ] && exec bash "build/git-hooks/commit-msg" "$@"
exit 0
Loading…
Cancel
Save