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:
dpranke@chromium.org
2013-04-03 21:29:50 +00:00
parent a992edbc1a
commit 7ca51b30a4

View File

@@ -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',