Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(213)

Unified Diff: gclient_utils.py

Issue 2973001: Revert the refactor (r52005) again, it broke webkit checkout. (Closed)
Patch Set: Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gclient.py ('k') | tests/gclient_smoketest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « gclient.py ('k') | tests/gclient_smoketest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698