From bd8cecf4969594ce5b514a0289b75dffc13b9b4e Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Fri, 25 Jul 2008 20:46:23 +0200 Subject: [PATCH] cgi/regproj.cgi: Add fork parameter, accepting full project name --- cgi/regproj.cgi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cgi/regproj.cgi b/cgi/regproj.cgi index 9342625..9f9b75c 100755 --- a/cgi/regproj.cgi +++ b/cgi/regproj.cgi @@ -17,6 +17,12 @@ my $cgi = $gcgi->cgi; my $name = $cgi->param('name'); $name ||= ''; +my $fork = $cgi->param('fork'); +if ($fork) { + $fork =~ s/\.git$//; + $name = "$fork/"; +} + if ($cgi->param('mail')) { print "

Go away, bot.

"; exit; -- 2.11.4.GIT