summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOwen W. Taylor <otaylor@fishsoup.net>2008-11-23 11:24:08 -0500
committerOwen W. Taylor <otaylor@fishsoup.net>2008-11-23 11:24:08 -0500
commit0af9728ec7503650a4f4fad4f7aefc94c4d44ff0 (patch)
tree7366af0752eef7b1f5f74565cc67a3e9ea06a57e
parent93362dc8c5068a568744ef10abaea84715bc4e1a (diff)
downloadgit-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-xgit-bz2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-bz b/git-bz
index c67e40a..5bf2826 100755
--- a/git-bz
+++ b/git-bz
@@ -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: