3 # Invoked from mirroring/cloned.pl
10 proj
="${projdir%.git}"
12 cd "$cfg_reporoot/$projdir"
13 trap "echo '@OVER@'; touch .clone_failed" EXIT
18 echo "Configuring repository..."
19 git config
--bool --add mirror.allowed true
20 git remote add origin
"$url" # superfluous?
23 echo "Initiating mirroring..."
27 echo "Final touches..."
28 git update-server-info
30 mail -s "[$cfg_name] $proj clone completed" "$mail,$cfg_admin" <<EOT
31 Congratulations! The clone of project $proj just completed.
34 * GitWeb interface: $cfg_gitweburl/$projdir
35 * Project settings: $cfg_webadmurl/editproj.cgi?name=$proj
40 echo "Mirroring finished successfuly!"