git-cl: Parse new change urls containing project paths
Bug: 764848
Change-Id: I639451ad54eb50a405fe44b9a83b00d84ec76578
Reviewed-on: https://chromium-review.googlesource.com/665998
Reviewed-by: Sergey Berezin <sergeyberezin@chromium.org>
Commit-Queue: Aaron Gable <agable@chromium.org>
diff --git a/git_cl.py b/git_cl.py
index 3ae313e..f65f7b2 100755
--- a/git_cl.py
+++ b/git_cl.py
@@ -3087,7 +3087,7 @@
change_desc)
if options.squash:
- regex = re.compile(r'remote:\s+https?://[\w\-\.\/]*/(\d+)\s.*')
+ regex = re.compile(r'remote:\s+https?://[\w\-\.\+\/#]*/(\d+)\s.*')
change_numbers = [m.group(1)
for m in map(regex.match, push_stdout.splitlines())
if m]