[Python-modules-commits] [dulwich] 02/08: Make default user-agent start with git/ to work around github responding 404 otherwise. #562
Jelmer Vernooij
jelmer at moszumanska.debian.org
Sun Oct 1 22:25:31 UTC 2017
This is an automated email from the git hooks/post-receive script.
jelmer pushed a commit to branch master
in repository dulwich.
commit 93549e159846c8336d35ad5fb4a1b3cbbee72b23
Author: Jelmer Vernooij <jelmer at debian.org>
Date: Sun Oct 1 01:51:19 2017 +0100
Make default user-agent start with git/ to work around github responding 404 otherwise. #562
---
NEWS | 8 ++++++++
dulwich/client.py | 4 +++-
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/NEWS b/NEWS
index 809f298..7a06acd 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,11 @@
+0.18.4 2017-10-01
+
+ BUG FIXES
+
+ * Make default User-Agent start with "git/" because GitHub won't response to
+ HTTP smart server requests otherwise (and reply with a 404).
+ (Jelmer vernooij, #562)
+
0.18.3 2017-09-03
BUG FIXES
diff --git a/dulwich/client.py b/dulwich/client.py
index 4e9978a..4a41589 100644
--- a/dulwich/client.py
+++ b/dulwich/client.py
@@ -1161,7 +1161,9 @@ class SSHGitClient(TraditionalGitClient):
def default_user_agent_string():
- return "dulwich/%s" % ".".join([str(x) for x in dulwich.__version__])
+ # Start user agent with "git/", because GitHub requires this. :-( See
+ # https://github.com/jelmer/dulwich/issues/562 for details.
+ return "git/dulwich/%s" % ".".join([str(x) for x in dulwich.__version__])
def default_urllib2_opener(config):
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/dulwich.git
More information about the Python-modules-commits
mailing list