| Index: gclient_utils.py
|
| diff --git a/gclient_utils.py b/gclient_utils.py
|
| index 327dfe435d9f245ea754e7fec0fcbef97d3d482a..3297e63872c20363d4810660c23160b95f55806c 100644
|
| --- a/gclient_utils.py
|
| +++ b/gclient_utils.py
|
| @@ -301,10 +301,10 @@ def IsUsingGit(root, paths):
|
| return True
|
| return False
|
|
|
| -def FindGclientRoot(from_dir):
|
| +def FindGclientRoot(from_dir, filename='.gclient'):
|
| """Tries to find the gclient root."""
|
| path = os.path.realpath(from_dir)
|
| - while not os.path.exists(os.path.join(path, '.gclient')):
|
| + while not os.path.exists(os.path.join(path, filename)):
|
| next = os.path.split(path)
|
| if not next[1]:
|
| return None
|
| @@ -312,6 +312,7 @@ def FindGclientRoot(from_dir):
|
| logging.info('Found gclient root at ' + path)
|
| return path
|
|
|
| +
|
| def PathDifference(root, subpath):
|
| """Returns the difference subpath minus root."""
|
| root = os.path.realpath(root)
|
|
|