mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 18:51:29 +00:00
print chdirs for dryrun in fetch
TBR=iannucci@chromium.org, maruel@chromium.org, agable@chromium.org Review URL: https://codereview.chromium.org/13582005 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@192164 0039d316-1c4b-4281-b951-d872f2087c98
This commit is contained in:
4
fetch.py
4
fetch.py
@@ -96,6 +96,8 @@ class GclientGitSvnCheckout(GclientCheckout, GitCheckout):
|
||||
|
||||
# Configure git.
|
||||
wd = os.path.join(self.base, self.root)
|
||||
if self.dryrun:
|
||||
print "cd %s" % wd
|
||||
self.run_git(
|
||||
'submodule', 'foreach',
|
||||
'git config -f $toplevel/.git/config submodule.$name.ignore all',
|
||||
@@ -115,6 +117,8 @@ class GclientGitSvnCheckout(GclientCheckout, GitCheckout):
|
||||
subspec = submodules[path]
|
||||
ospath = os.path.join(*path.split('/'))
|
||||
wd = os.path.join(self.base, self.root, ospath)
|
||||
if self.dryrun:
|
||||
print "cd %s" % wd
|
||||
self.run_git('svn', 'init', '--prefix=origin/', '-T',
|
||||
subspec['svn_branch'], subspec['svn_url'], cwd=wd)
|
||||
self.run_git('config', '--replace', 'svn-remote.svn.fetch',
|
||||
|
||||
Reference in New Issue
Block a user