summaryrefslogtreecommitdiffstats
path: root/repo
diff options
context:
space:
mode:
Diffstat (limited to 'repo')
-rwxr-xr-xrepo6
1 files changed, 5 insertions, 1 deletions
diff --git a/repo b/repo
index ff7c4188..3a545cc6 100755
--- a/repo
+++ b/repo
@@ -432,10 +432,14 @@ def _FindRepo():
432 dir = os.getcwd() 432 dir = os.getcwd()
433 repo = None 433 repo = None
434 434
435 while dir != '/' and not repo: 435 olddir = None
436 while dir != '/' \
437 and dir != olddir \
438 and not repo:
436 repo = os.path.join(dir, repodir, REPO_MAIN) 439 repo = os.path.join(dir, repodir, REPO_MAIN)
437 if not os.path.isfile(repo): 440 if not os.path.isfile(repo):
438 repo = None 441 repo = None
442 olddir = dir
439 dir = os.path.dirname(dir) 443 dir = os.path.dirname(dir)
440 return (repo, os.path.join(dir, repodir)) 444 return (repo, os.path.join(dir, repodir))
441 445