Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Unified Diff: gclient_scm.py

Issue 18083033: Get rid of place-holder for commit-msg hook. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | git-templates/hooks/commit-msg » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gclient_scm.py
diff --git a/gclient_scm.py b/gclient_scm.py
index 31296d02d13df72e058b2afff6dc9e6c261ee2d3..5a5dc075b3c6c4b5ffb81b11c9702a37e1815dc2 100644
--- a/gclient_scm.py
+++ b/gclient_scm.py
@@ -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/'):
« no previous file with comments | « no previous file | git-templates/hooks/commit-msg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698