gclient: fix deletion warning for checkouts created with "gclient config --name ."

BUG=skia:1945

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@263081 0039d316-1c4b-4281-b951-d872f2087c98
changes/01/332501/1
borenet@google.com 11 years ago
parent 46d09f6c6c
commit 97a04f2055

@ -353,7 +353,10 @@ class GitWrapper(SCMWrapper):
not os.path.exists(os.path.join(self.checkout_path, '.git')))):
if (os.path.isdir(self.checkout_path) and
not os.path.exists(os.path.join(self.checkout_path, '.git'))):
self._DeleteOrMove(options.force)
# This is a little hack to work around checkouts which are created
# using "gclient config --name ."
if not self.relpath == '.':
self._DeleteOrMove(options.force)
self._Clone(revision, url, options)
self._UpdateBranchHeads(options, fetch=True)
if file_list is not None:

Loading…
Cancel
Save