gclient: Fix logic to match --patch-ref with dependencies.

Accept cases when the origin in --patch-ref ends in .git but the URL in
.gclient or DEPS doesn't.

R=agable@chromium.org

Bug: 643346
Change-Id: I25e6fd8400b09c7e249578cfbd7e9485bab9ea85
Reviewed-on: https://chromium-review.googlesource.com/1030893
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>
Reviewed-by: Aaron Gable <agable@chromium.org>
changes/93/1030893/4
Edward Lesmes 7 years ago committed by Commit Bot
parent e38cf570fc
commit 990148ed24

@ -958,6 +958,8 @@ class Dependency(gclient_utils.WorkItem, DependencySettings):
return origin
if origin.endswith('.git') and origin[:-len('.git')] in candidates:
return origin[:-len('.git')]
if origin + '.git' in candidates:
return origin + '.git'
if self.name in candidates:
return self.name
return None

@ -5,6 +5,6 @@ Once upon a time, a budding web browser dev team needed a CI system.
All they had was one poor machine under a desk, and its name was Batty,
the Build and Test Yeti.
Then suddenly, and without delay, Batty the Build and Test Yeti
😒

Loading…
Cancel
Save