|
@@ -430,10 +430,14 @@ def _FindRepo():
|
|
|
dir = os.getcwd()
|
|
dir = os.getcwd()
|
|
|
repo = None
|
|
repo = None
|
|
|
|
|
|
|
|
- while dir != '/' and not repo:
|
|
|
|
|
|
|
+ olddir = None
|
|
|
|
|
+ while dir != '/' \
|
|
|
|
|
+ and dir != olddir \
|
|
|
|
|
+ and not repo:
|
|
|
repo = os.path.join(dir, repodir, REPO_MAIN)
|
|
repo = os.path.join(dir, repodir, REPO_MAIN)
|
|
|
if not os.path.isfile(repo):
|
|
if not os.path.isfile(repo):
|
|
|
repo = None
|
|
repo = None
|
|
|
|
|
+ olddir = dir
|
|
|
dir = os.path.dirname(dir)
|
|
dir = os.path.dirname(dir)
|
|
|
return (repo, os.path.join(dir, repodir))
|
|
return (repo, os.path.join(dir, repodir))
|
|
|
|
|
|