summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xrepo9
1 files changed, 5 insertions, 4 deletions
diff --git a/repo b/repo
index 3ae38360..bd3a3f1c 100755
--- a/repo
+++ b/repo
@@ -361,16 +361,17 @@ def _Init(args, gitc_init=False):
361 dst = os.path.abspath(os.path.join(repodir, S_repo)) 361 dst = os.path.abspath(os.path.join(repodir, S_repo))
362 _Clone(url, dst, opt.quiet, not opt.no_clone_bundle) 362 _Clone(url, dst, opt.quiet, not opt.no_clone_bundle)
363 363
364 if not os.path.isfile('%s/repo' % dst):
365 _print("warning: '%s' does not look like a git-repo repository, is "
366 "REPO_URL set correctly?" % url, file=sys.stderr)
367
368 if can_verify and not opt.no_repo_verify: 364 if can_verify and not opt.no_repo_verify:
369 rev = _Verify(dst, branch, opt.quiet) 365 rev = _Verify(dst, branch, opt.quiet)
370 else: 366 else:
371 rev = 'refs/remotes/origin/%s^0' % branch 367 rev = 'refs/remotes/origin/%s^0' % branch
372 368
373 _Checkout(dst, branch, rev, opt.quiet) 369 _Checkout(dst, branch, rev, opt.quiet)
370
371 if not os.path.isfile(os.path.join(dst, 'repo')):
372 _print("warning: '%s' does not look like a git-repo repository, is "
373 "REPO_URL set correctly?" % url, file=sys.stderr)
374
374 except CloneFailure: 375 except CloneFailure:
375 if opt.quiet: 376 if opt.quiet:
376 _print('fatal: repo init failed; run without --quiet to see why', 377 _print('fatal: repo init failed; run without --quiet to see why',