[gnome-apps-nightly/gnome-3-22] Builder: pretend to be git/1.7 in libgit2 (patch)



commit ca043ff943593811445ef394e1ce0f074e75be14
Author: Christian Hergert <chergert redhat com>
Date:   Mon Dec 19 14:15:20 2016 -0800

    Builder: pretend to be git/1.7 in libgit2 (patch)
    
    This adds a patch to pretend to be a newer git in libgit2 so that our
    stable flatpaks work with http(s).

 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 0f92079..d48d440 100644
--- a/org.gnome.Builder.json
+++ b/org.gnome.Builder.json
@@ -196,6 +196,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]