From 4f4658274dd84595d23b2d0fd16eba6927239a34 Mon Sep 17 00:00:00 2001 From: Sitaram Chamarty Date: Fri, 14 Dec 2012 07:29:20 +0530 Subject: [PATCH] CREATOR need only be a "word" in wild repo patterns MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit this was a v2 compat breakage, caught by Dominik Schäfer (schaedpq at gmail) --- src/lib/Gitolite/Conf/Load.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/Gitolite/Conf/Load.pm b/src/lib/Gitolite/Conf/Load.pm index 00a6b8a..2611630 100644 --- a/src/lib/Gitolite/Conf/Load.pm +++ b/src/lib/Gitolite/Conf/Load.pm @@ -418,8 +418,7 @@ sub generic_name { $creator = creator($base); $base2 = $base; - $base2 =~ s(/$creator/)(/CREATOR/) if $creator; - $base2 =~ s(^$creator/)(CREATOR/) if $creator; + $base2 =~ s(\b$creator\b)(CREATOR) if $creator; $base2 = '' if $base2 eq $base; # if there was no change return $base2;