`git cl patch` for Rietveld issue fails for Gerrit-default repos |
||||
Issue descriptionI am trying to reapply https://codereview.chromium.org/2486923002/ to my local checkout so I can make changes and reland (it was reverted). However, when I try to do this: > depot-tools-auth info codereview.chromium.org Logged in to codereview.chromium.org as stip@chromium.org. To login with a different email run: depot-tools-auth login codereview.chromium.org To logout and purge the authentication token run: depot-tools-auth logout codereview.chromium.org > git cl patch https://codereview.chromium.org/2486923002 issue 2486923002 at https://codereview.chromium.org does not exist or you have no access to it I tried marking the issue as open again but that didn't seem to help. My guess is this has something to do with the gerrit transition?
,
Nov 14 2016
,
Nov 14 2016
,
Nov 14 2016
I'd say use --rietveld very short term OR copy-paste URL with patchset number in it, this is unique enough to Rietveld and it definitely used to work before. Medium term - maybe have special case for 3 typical urls: codereview.chromium.org codereview.webrtc.org codereview.appspot.com s.t. they are treated as if they were Rietveld. and long term Rietveld is no longer supported :)
,
Nov 14 2016
The point is that using the URL doesn't work, because we don't whitelist Rietveld hosts. We *could* (as you suggest), but note that we'd also have to whitelist internal Rietveld hosts.
,
Nov 14 2016
I don't see a problem in whitelisting internal Rietveld hosts, it's not like the domain names are private anyway :)
,
Nov 22 2016
Issue 667341 has been merged into this issue.
,
Nov 22 2016
Issue 667927 has been merged into this issue.
,
Nov 29 2016
As of https://chromium.googlesource.com/chromium/tools/depot_tools/+/c2786d933bb6517a88ba6ff95e1606f656d89178, "git cl patch --gerrit <url>" works, as does "git cl patch --rietveld <url>". Since the flag exists, I have no plans to whitelist specific hosts. Just use the flag. |
||||
►
Sign in to add a comment |
||||
Comment 1 by aga...@chromium.org
, Nov 14 2016