From: Daniel Knittl-Frank Date: Sat, 19 Mar 2011 11:12:25 +0000 (+0100) Subject: Add notice about immediate pushing on forking page X-Git-Url: https://repo.or.cz/w/girocco.git/commitdiff_plain/fa2a53931047827ddfb53a89e28e0c57a6e8d55e Add notice about immediate pushing on forking page permissions are fixed up after a project was forked, which usually takes several minutes. During this timeframe pushing will not work and generate an error on the client side. Inform users about this issue. --- diff --git a/cgi/regproj.cgi b/cgi/regproj.cgi index eb08f39..f6a13b8 100755 --- a/cgi/regproj.cgi +++ b/cgi/regproj.cgi @@ -246,13 +246,16 @@ EOT } my $forkentry = ''; +my $forknote = ''; if ($name =~ m#/#) { $name =~ s#^(.*)/##; - $forkentry = ''.$1.'/' + $forkentry = ''.$1.'/'; + $forknote = '

Note that it takes a few minutes to fork a project. Trying to push immediately will fail. Please wait a few minutes before attempting to push.

'; } print <
Project name:$forkentry.git