13 # This removes our stage directory _and_ gets rid of the group record.
14 perl
-I@basedir@
-MGirocco::Project
-e 'Girocco::Project->load('"'$proj'"')->delete;'
17 cd "$cfg_reporoot/$projdir"
21 # First, the boring clone itself
23 if [ -s objects
/info
/alternates
]; then
24 ref
=(--reference "$(cat objects/info/alternates | sed 's#/objects$##')")
25 bang
rm objects
/info
/alternates
26 bang
rmdir -p objects
/info
28 bang git clone
"${ref[@]}" --bare "$url" repodir
30 # Reconcile repodir and .
35 bang git config
--bool --add mirror.allowed true
36 bang git update-server-info
38 mail -s "[$cfg_name] $proj clone completed" "$mail,$cfg_admin" <<EOT
39 Congratulations! The clone of project $proj just completed.
41 * GitWeb interface: $cfg_gitweburl/$projdir
42 * Project settings: $cfg_webadmurl/editproj.cgi?name=$proj