summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathon Jongsma <jonathon@quotidian.org>2009-09-15 15:01:05 -0500
committerJonathon Jongsma <jonathon@quotidian.org>2009-09-15 15:01:05 -0500
commit5c52c2f6afb489f7285e17662f4b5ff440e1ca0c (patch)
tree9a4ae8a8e3e5c749804ac5ccf704b18fba467f99
parentfeb1c4788d7399dfafa7e7f82903d12ef9dbc998 (diff)
downloadgit-bz-5c52c2f6afb489f7285e17662f4b5ff440e1ca0c.tar.gz
Fix ' git bz attach' failure when bugzilla server has a path
I had accidentally prepended the bugzilla installation path in both BugServer.send_post() and BugServer.send_request() (which is called by send_post()), so the path was getting prepended twice when trying to attach a patch.
-rwxr-xr-xgit-bz2
1 files changed, 0 insertions, 2 deletions
diff --git a/git-bz b/git-bz
index 2edb3f5..c45b7f3 100755
--- a/git-bz
+++ b/git-bz
@@ -865,8 +865,6 @@ class BugServer(object):
def send_post(self, url, fields, files=None):
content_type, body = encode_multipart_formdata(fields, files)
- if self.path:
- url = self.path + url
return self.send_request("POST", url, data=body, headers={ 'Content-Type': content_type })
def get_xmlrpc_proxy(self):