[packages/gitolite3] add "=" to whitelist of tag names

glen glen at pld-linux.org
Mon Mar 7 10:20:08 CET 2016


commit 505fe083fe0e37dbd8b244ed50770eb99255e8c8
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Mar 7 11:19:40 2016 +0200

    add "=" to whitelist of tag names
    
    it is no longer configurable, so patch it

 REF_OR_FILENAME_PATT.patch | 11 +++++++++++
 gitolite3.spec             |  4 +++-
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/gitolite3.spec b/gitolite3.spec
index e7bb8b0..6278309 100644
--- a/gitolite3.spec
+++ b/gitolite3.spec
@@ -3,13 +3,14 @@ Summary:	Software for hosting git repositories
 Summary(pl.UTF-8):	Narzędzie do hostowania repozytoriów git
 Name:		gitolite3
 Version:	3.6.5
-Release:	1
+Release:	2
 License:	GPL v2
 Group:		Development/Tools
 Source0:	https://github.com/sitaramc/gitolite/tarball/v%{version}/gitolite-%{version}.tar.gz
 # Source0-md5:	62d15150914084a37e6fcab6fdf63d34
 Source1:	gitolite.pl
 Patch0:		%{name}-README.patch
+Patch1:		REF_OR_FILENAME_PATT.patch
 URL:		https://github.com/sitaramc/gitolite
 BuildRequires:	rpm-perlprov
 BuildRequires:	rpmbuild(macros) >= 1.219
@@ -67,6 +68,7 @@ mv sitaramc-gitolite-*/* .
 %{__rm} -r sitaramc-gitolite-*
 
 %patch0 -p1
+%patch1 -p1
 
 echo "v%{version}" > src/VERSION # add '-pld' suffix or something if patched
 
diff --git a/REF_OR_FILENAME_PATT.patch b/REF_OR_FILENAME_PATT.patch
new file mode 100644
index 0000000..5a4b700
--- /dev/null
+++ b/REF_OR_FILENAME_PATT.patch
@@ -0,0 +1,11 @@
+--- ./src/lib/Gitolite/Rc.pm~	2016-02-20 14:48:57.000000000 +0200
++++ ./src/lib/Gitolite/Rc.pm	2016-03-07 11:17:00.434408955 +0200
+@@ -47,7 +47,7 @@
+ 
+ #<<<
+ $REMOTE_COMMAND_PATT  =                qr(^[-0-9a-zA-Z._\@/+ :,\%=]*$);
+-$REF_OR_FILENAME_PATT =     qr(^[0-9a-zA-Z][-0-9a-zA-Z._\@/+ :,]*$);
++$REF_OR_FILENAME_PATT =     qr(^[0-9a-zA-Z][-0-9a-zA-Z._\@/+ :,=]*$);
+ $REPONAME_PATT        =  qr(^\@?[0-9a-zA-Z][-0-9a-zA-Z._\@/+]*$);
+ $REPOPATT_PATT        = qr(^\@?[[0-9a-zA-Z][-0-9a-zA-Z._\@/+\\^$|()[\]*?{},]*$);
+ $USERNAME_PATT        =  qr(^\@?[0-9a-zA-Z][-0-9a-zA-Z._\@+]*$);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gitolite3.git/commitdiff/505fe083fe0e37dbd8b244ed50770eb99255e8c8



More information about the pld-cvs-commit mailing list