diff --git a/git_cl.py b/git_cl.py index 8a2a8a1f6a..312fa32803 100755 --- a/git_cl.py +++ b/git_cl.py @@ -2704,7 +2704,7 @@ class _GerritChangelistImpl(_ChangelistCodereviewBase): print('Issue %s has been submitted.' % self.GetIssueURL()) links = self._GetChangeCommit().get('web_links', []) for link in links: - if link.get('name') == 'gerrit' and link.get('url'): + if link.get('name') == 'gitiles' and link.get('url'): print('Landed as %s' % link.get('url')) break return 0 diff --git a/tests/git_cl_test.py b/tests/git_cl_test.py index 3bc4e7f795..68186da5dc 100755 --- a/tests/git_cl_test.py +++ b/tests/git_cl_test.py @@ -2763,7 +2763,7 @@ class TestGitCl(TestCase): } cl._codereview_impl._GetChangeCommit = lambda: { 'commit': 'deadbeef', - 'web_links': [{'name': 'gerrit', + 'web_links': [{'name': 'gitiles', 'url': 'https://git.googlesource.com/test/+/deadbeef'}], } cl._codereview_impl.SubmitIssue = lambda wait_for_merge: None