Add patch to fix ruby 2.5 compatibility issue
This commit is contained in:
parent
d387b65fa2
commit
0dfa45f101
2 changed files with 26 additions and 0 deletions
25
debian/patches/0791-ruby2.5-compat.patch
vendored
Normal file
25
debian/patches/0791-ruby2.5-compat.patch
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
From fb7c85bb5a7c010a153afb2f0dff711ab3afdad5 Mon Sep 17 00:00:00 2001
|
||||
From: Pirate Praveen <praveen@debian.org>
|
||||
Date: Tue, 30 Jun 2020 12:10:41 +0000
|
||||
Subject: [PATCH] Fix ruby 2.5 compatibility (Thanks to Antonio Terceiro)
|
||||
|
||||
---
|
||||
lib/gitlab/golang.rb | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/lib/gitlab/golang.rb b/lib/gitlab/golang.rb
|
||||
index f2dc668c482a..34ff689eea4a 100644
|
||||
--- a/lib/gitlab/golang.rb
|
||||
+++ b/lib/gitlab/golang.rb
|
||||
@@ -33,7 +33,7 @@ module Gitlab
|
||||
m = /\A(.*\.)?0\./.freeze.match pre
|
||||
return false unless m
|
||||
|
||||
- pre = pre[m[0].length..]
|
||||
+ pre = pre[m[0].length..-1]
|
||||
end
|
||||
|
||||
# This pattern is intentionally more forgiving than the patterns
|
||||
--
|
||||
GitLab
|
||||
|
1
debian/patches/series
vendored
1
debian/patches/series
vendored
|
@ -26,3 +26,4 @@
|
|||
0750-fix-relative-paths.patch
|
||||
0760-update-grape.patch
|
||||
0790-protobuf-compat.patch
|
||||
0791-ruby2.5-compat.patch
|
||||
|
|
Loading…
Reference in a new issue