156
156
url.user = url.quoted_user = None
157
157
url.password = url.quoted_password = None
158
158
url = urlutils.join(str(url), "info/refs") + "?service=git-upload-pack"
160
159
headers = {"Content-Type": "application/x-git-upload-pack-request",
161
160
"Accept": "application/x-git-upload-pack-result",
163
req = Request('GET', url, accepted_errors=[200, 403, 404, 405],
165
162
(scheme, user, password, host, port,
168
165
# GitHub requires we lie.
169
166
# https://github.com/dulwich/dulwich/issues/562