Commit 9ccad568 authored by John Budorick's avatar John Budorick Committed by Commit Bot

bot_update: Ensure create_manifest ignores repos with explicit None urls.

Bug: 830306
Change-Id: Id87a6f2053c7e3cd489647d1cbbc8a83f2e585db
Reviewed-on: https://chromium-review.googlesource.com/1003326Reviewed-by: 's avatarAaron Gable <agable@chromium.org>
Commit-Queue: John Budorick <jbudorick@chromium.org>
parent 85c75025
...@@ -452,7 +452,9 @@ def create_manifest(gclient_output, patch_root, gerrit_ref): ...@@ -452,7 +452,9 @@ def create_manifest(gclient_output, patch_root, gerrit_ref):
revision = info.get('revision', '') revision = info.get('revision', '')
# The format of the url is "https://repo.url/blah.git@abcdefabcdef" or # The format of the url is "https://repo.url/blah.git@abcdefabcdef" or
# just "https://repo.url/blah.git" # just "https://repo.url/blah.git"
url_split = info.get('url', '').split('@') url_split = info.get('url')
if url_split is not None:
url_split = url_split.split('@')
if not revision and len(url_split) == 2: if not revision and len(url_split) == 2:
revision = url_split[1] revision = url_split[1]
if url_split: if url_split:
......
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