Change implementation of cleanup in case of clone failure during "repo init"
Fix includes:
1. It deletes only .repo/repo instead of the whole .repo repository.
Bug: Issue 161
Change-Id: I1ab8caa7538fec5e6206d1b029f63bd3f60dedcd
diff --git a/repo b/repo
index 3fd0166..6338483 100755
--- a/repo
+++ b/repo
@@ -738,7 +738,7 @@
try:
_Init(args)
except CloneFailure:
- shutil.rmtree(repodir, ignore_errors=True)
+ shutil.rmtree(os.path.join(repodir, S_repo), ignore_errors=True)
sys.exit(1)
repo_main, rel_repo_dir = _FindRepo()
else: