Commit 3add4b62 authored by iannucci@chromium.org's avatar iannucci@chromium.org

Fix cit.py when ~/.chrome-infra exists but does not have infra.

R=hinoka@chromium.org, stip@chromium.org
BUG=

Review URL: https://codereview.chromium.org/1457563002

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@297583 0039d316-1c4b-4281-b951-d872f2087c98
parent e27eb7e6
...@@ -42,6 +42,9 @@ def need_to_update(branch): ...@@ -42,6 +42,9 @@ def need_to_update(branch):
except OSError: except OSError:
return True # Gclient failed, definitely need to update. 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') local_rev = get_git_rev(INFRA_DIR, 'HEAD')
subprocess.check_call( subprocess.check_call(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment