| Index: gclient_utils.py
|
| diff --git a/gclient_utils.py b/gclient_utils.py
|
| index 5fd2ef27a7f9fc7da14ca6683792d233574c482c..54910ce45a2cfd482955e1cad31c70ec6a846d18 100644
|
| --- a/gclient_utils.py
|
| +++ b/gclient_utils.py
|
| @@ -310,6 +310,14 @@ def SubprocessCallAndFilter(command,
|
| raise Error(msg)
|
|
|
|
|
| +def IsUsingGit(root, paths):
|
| + """Returns True if we're using git to manage any of our checkouts.
|
| + |entries| is a list of paths to check."""
|
| + for path in paths:
|
| + if os.path.exists(os.path.join(root, path, '.git')):
|
| + return True
|
| + return False
|
| +
|
| def FindGclientRoot(from_dir, filename='.gclient'):
|
| """Tries to find the gclient root."""
|
| path = os.path.realpath(from_dir)
|
|
|