diff options
author | Owen W. Taylor <otaylor@fishsoup.net> | 2008-11-23 11:24:08 -0500 |
---|---|---|
committer | Owen W. Taylor <otaylor@fishsoup.net> | 2008-11-23 11:24:08 -0500 |
commit | 0af9728ec7503650a4f4fad4f7aefc94c4d44ff0 (patch) | |
tree | 7366af0752eef7b1f5f74565cc67a3e9ea06a57e | |
parent | 93362dc8c5068a568744ef10abaea84715bc4e1a (diff) | |
download | git-bz-0af9728ec7503650a4f4fad4f7aefc94c4d44ff0.tar.gz |
Fix resolving URL bug references
Fix a problem where https was always used when a bug reference
was specified as an URL: fhttp(s?) gives a group(1) of "" not
None when the s is missing
-rwxr-xr-x | git-bz | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -433,7 +433,7 @@ def get_default_fields(tracker): def resolve_bug_reference(bug_reference): m = re.match("http(s?)://([^/]+)/show_bug.cgi\?id=([^&]+)", bug_reference) if m: - return m.group(2), m.group(1) != None, m.group(3) + return m.group(2), m.group(1) != "", m.group(3) colon = bug_reference.find(":") if colon > 0: |