diff options
| -rwxr-xr-x | repo | 4 |
1 files changed, 1 insertions, 3 deletions
| @@ -966,9 +966,7 @@ def _FindRepo(): | |||
| 966 | repo = None | 966 | repo = None |
| 967 | 967 | ||
| 968 | olddir = None | 968 | olddir = None |
| 969 | while curdir != '/' \ | 969 | while curdir != olddir and not repo: |
| 970 | and curdir != olddir \ | ||
| 971 | and not repo: | ||
| 972 | repo = os.path.join(curdir, repodir, REPO_MAIN) | 970 | repo = os.path.join(curdir, repodir, REPO_MAIN) |
| 973 | if not os.path.isfile(repo): | 971 | if not os.path.isfile(repo): |
| 974 | repo = None | 972 | repo = None |
