[gnome-apps-nightly] Builder: patch libgit2 to pretend to be git 1.7
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-apps-nightly] Builder: patch libgit2 to pretend to be git 1.7
- Date: Mon, 19 Dec 2016 22:12:34 +0000 (UTC)
commit 99db3b511e756c6479683dae9999460d792d40e2
Author: Christian Hergert <chergert redhat com>
Date: Mon Dec 19 14:11:16 2016 -0800
Builder: patch libgit2 to pretend to be git 1.7
We need to pretend to be a newer git so that we can use the http backend
of gnome infrastructure.
0001-libgit2-http-pretend-to-be-git-1.7.patch | 25 +++++++++++++++++++++++++
org.gnome.Builder.json | 4 ++++
2 files changed, 29 insertions(+), 0 deletions(-)
---
diff --git a/0001-libgit2-http-pretend-to-be-git-1.7.patch b/0001-libgit2-http-pretend-to-be-git-1.7.patch
new file mode 100644
index 0000000..6889fad
--- /dev/null
+++ b/0001-libgit2-http-pretend-to-be-git-1.7.patch
@@ -0,0 +1,25 @@
+From ba5cc93f0de9a0e82eca918a7105b3eb685b3695 Mon Sep 17 00:00:00 2001
+From: Christian Hergert <chergert redhat com>
+Date: Mon, 19 Dec 2016 14:09:17 -0800
+Subject: [PATCH] http: pretend to be git 1.7+
+
+---
+ src/transports/http.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/transports/http.c b/src/transports/http.c
+index ca1f504..eb1addd 100644
+--- a/src/transports/http.c
++++ b/src/transports/http.c
+@@ -208,7 +208,7 @@ static int gen_request(
+
+ git_buf_printf(buf, "%s %s%s HTTP/1.1\r\n", s->verb, path, s->service_url);
+
+- git_buf_printf(buf, "User-Agent: git/1.0 (%s)\r\n", user_agent());
++ git_buf_printf(buf, "User-Agent: git/1.7 (%s)\r\n", user_agent());
+ git_buf_printf(buf, "Host: %s\r\n", t->connection_data.host);
+
+ if (s->chunked || content_length > 0) {
+--
+2.9.3
+
diff --git a/org.gnome.Builder.json b/org.gnome.Builder.json
index 76df125..9456ef7 100644
--- a/org.gnome.Builder.json
+++ b/org.gnome.Builder.json
@@ -209,6 +209,10 @@
"type": "git",
"url": "https://github.com/libgit2/libgit2.git",
"branch": "maint/v0.24"
+ },
+ {
+ "type": "patch",
+ "path": "0001-libgit2-http-pretend-to-be-git-1.7.patch"
}
]
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]