summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorg0t <have.you.g0tmi1k@gmail.com>2023-03-07 12:20:24 +0000
committerg0t <have.you.g0tmi1k@gmail.com>2023-03-07 12:20:24 +0000
commitbfe710d88579f781e2e68e5c33c3870303653e6b (patch)
tree24e5225e1f55be2c9d4e0487ce0c6fa5da558ee6
parent8608f6d820ea3d5f184d87fdd093d7605f35eda0 (diff)
Fix !1 - Unnecessary parameter
Fix for first MR (!1). Should stop the inconsistency issue due to multiple variables, being set and pulling in the first one (which may not be the file) > File HASH(0x55b54ff639a0) is not readable at ...
-rwxr-xr-xdebian/patches/0002-add-put-multipart-support-edit_project.patch17
1 files changed, 8 insertions, 9 deletions
diff --git a/debian/patches/0002-add-put-multipart-support-edit_project.patch b/debian/patches/0002-add-put-multipart-support-edit_project.patch
index 78bbce6..84850f8 100755
--- a/debian/patches/0002-add-put-multipart-support-edit_project.patch
+++ b/debian/patches/0002-add-put-multipart-support-edit_project.patch
@@ -3,14 +3,14 @@ Description:
However the request needs to be submitted via PUT with `Content-Type: multipart/form-data` header set.
REF: https://docs.gitlab.com/ee/api/projects.html#upload-a-project-avatar
Author: g0t mi1k <have.you.g0tmi1k@gmail.com>
-Last-Update: Mon, 23 Jan 2023 06:10:02 +0000
+Last-Update: Mon, 7 Mar 2023 12:02:45 +0000
Forwarded: https://github.com/bluefeet/GitLab-API-v4/pull/54
---
- author/generate.pl | 6 ++++++
- author/sections/projects.yml | 4 ++++
- lib/GitLab/API/v4.pm | 26 ++++++++++++++++++++++
- lib/GitLab/API/v4/RESTClient.pm | 48 ++++++++++++++++++++++++++++++-----------
- 4 files changed, 72 insertions(+), 12 deletions(-)
+ author/generate.pl | 6 +++++
+ author/sections/projects.yml | 4 +++
+ lib/GitLab/API/v4.pm | 25 +++++++++++++++++
+ lib/GitLab/API/v4/RESTClient.pm | 48 ++++++++++++++++++++++++---------
+ 4 files changed, 71 insertions(+), 12 deletions(-)
diff --git a/author/generate.pl b/author/generate.pl
index 76096ed..341dbb3 100755
@@ -48,7 +48,7 @@ diff --git a/lib/GitLab/API/v4.pm b/lib/GitLab/API/v4.pm
index 87ba571..6ad83ce 100644
--- a/lib/GitLab/API/v4.pm
+++ b/lib/GitLab/API/v4.pm
-@@ -7340,6 +7340,32 @@ sub edit_project {
+@@ -7340,6 +7340,31 @@ sub edit_project {
return;
}
@@ -72,8 +72,7 @@ index 87ba571..6ad83ce 100644
+ my $params = (@_ == 2) ? pop() : undef;
+ my $options = {};
+ $options->{decode} = 0;
-+ $options->{content} = $params if defined $params;
-+ $options->{content}->{file} = $params;
++ $options->{content}->{file} = $params if defined $params;
+ $self->_call_rest_client( 'PUT', 'projects/:project_id', [@_], $options );
+ return;
+}