Fix another refactoro.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81312 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/utils/lit/lit.py b/utils/lit/lit.py
index 62ebf51..ceb08f5 100755
--- a/utils/lit/lit.py
+++ b/utils/lit/lit.py
@@ -156,7 +156,7 @@
         # If we didn't find a config file, keep looking.
         if not cfgpath:
             parent,base = os.path.split(path)
-            if parent == item:
+            if parent == path:
                 return (None, ())
 
             ts, relative = search(parent)