Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(820)

Issue 372045: gclient: fix bug where ssh urls with a username weren't parse correctly (Closed)

Created:
11 years, 1 month ago by Mandeep Singh Baines
Modified:
9 years, 7 months ago
Reviewers:
M-A Ruel, David McMahon
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

gclient: fix bug where ssh urls with a username weren't parse correctly ssh://test@example.org/test.git was not parsed correctly because we would split at the '@' assuming what followed was a revision. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=31444

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -1 line) Patch
M gclient_scm.py View 1 chunk +6 lines, -1 line 2 comments Download

Messages

Total messages: 6 (0 generated)
Mandeep Singh Baines
11 years, 1 month ago (2009-11-07 18:03:47 UTC) #1
M-A Ruel
http://codereview.chromium.org/372045/diff/1/2 File gclient_scm.py (right): http://codereview.chromium.org/372045/diff/1/2#newcode130 Line 130: regex = "(ssh://(?:[\w]+@)?[-\w:\.]+/[-\w\.]+)(?:@([\w/]+))?" Doesn't the regex work with ...
11 years, 1 month ago (2009-11-07 19:29:40 UTC) #2
msb
On Sat, Nov 7, 2009 at 11:29 AM, <maruel@chromium.org> wrote: > > http://codereview.chromium.org/372045/diff/1/2 > File ...
11 years, 1 month ago (2009-11-07 19:52:58 UTC) #3
msb
On Sat, Nov 7, 2009 at 11:52 AM, Mandeep Baines <msb@google.com> wrote: > On Sat, ...
11 years, 1 month ago (2009-11-07 20:00:00 UTC) #4
M-A Ruel
lgtm with fix. http://codereview.chromium.org/372045/diff/1/2 File gclient_scm.py (right): http://codereview.chromium.org/372045/diff/1/2#newcode130 Line 130: regex = "(ssh://(?:[\w]+@)?[-\w:\.]+/[-\w\.]+)(?:@([\w/]+))?" You need ...
11 years, 1 month ago (2009-11-09 16:39:23 UTC) #5
msb
11 years, 1 month ago (2009-11-09 17:56:08 UTC) #6
maruel@chromium.org (maruel@chromium.org) wrote:
> lgtm with fix.
>
>
> http://codereview.chromium.org/372045/diff/1/2
> File gclient_scm.py (right):
>
> http://codereview.chromium.org/372045/diff/1/2#newcode130
> Line 130: regex = "(ssh://(?:[\w]+@)?[-\w:\.]+/[-\w\.]+)(?:@([\w/]+))?"
> You need to use r"" btw.
>

Cool. Thanks:) Didn't know about r"".

> http://codereview.chromium.org/372045

Powered by Google App Engine
This is Rietveld 408576698