From d87170bb7b8ff4ba4b14b1e7d075a28a9110e96f Mon Sep 17 00:00:00 2001 From: David James Date: Mon, 15 Nov 2010 18:57:19 -0800 Subject: [PATCH] Fix infinite loop when FindRepoDir argument is a relative path. This bug doesn't affect production but affects the unit tests. BUG=chromium-os:9201 TEST=Confirmed this fixes an infinite loop in the unit tests, and that cbuildbot.py still works. Change-Id: I1a56b92d8229110c84cebbe877e55fb99f053212 Review URL: http://codereview.chromium.org/5025002 --- lib/cros_build_lib.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/cros_build_lib.py b/lib/cros_build_lib.py index e396b30abf..4888a4eae6 100644 --- a/lib/cros_build_lib.py +++ b/lib/cros_build_lib.py @@ -146,6 +146,7 @@ def FindRepoDir(path=None): """ if path is None: path = os.getcwd() + path = os.path.abspath(path) while path != '/': repo_dir = os.path.join(path, '.repo') if os.path.isdir(repo_dir):