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

Unified Diff: cit.py

Issue 1457563002: Fix cit.py when ~/.chrome-infra exists but does not have infra. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Created 5 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cit.py
diff --git a/cit.py b/cit.py
index 55331f4f5ea89b21341f931d53833db8e77bc002..ef6c7f0fb0c3ce8120f45f04cc3cae0fbd382ac4 100755
--- a/cit.py
+++ b/cit.py
@@ -42,6 +42,9 @@ def need_to_update(branch):
except OSError:
return True # Gclient failed, definitely need to update.
+ if not os.path.isdir(INFRA_DIR):
+ return True
+
local_rev = get_git_rev(INFRA_DIR, 'HEAD')
subprocess.check_call(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698