5 # this is hardcoded; change it if needed
11 # ----------------------------------------------------------------------
15 my $rb = `gitolite query-rc -n GL_REPO_BASE`;
17 try
"sed -ie 's%.Mirroring.,%\"Mirroring\",\\n\"create-with-reference\",%' ~/.gitolite.rc";
26 option reference.repo = source
30 option reference.repo-1 = source
31 option reference.repo-2 = fork
34 try
"ADMIN_PUSH set1; !/FATAL/" or die text
();
37 # source doesn't have alternates
38 ls $rb/source.git/objects/info/alternates; !ok
40 # fork has source as an alternate
41 ls $rb/fork.git/objects/info/alternates; ok
42 cat $rb/fork.git/objects/info/alternates; ok; /$rb/source.git/objects/
44 # multifork has multiple alternates
45 ls $rb/multifork.git/objects/info/alternates; ok
46 cat $rb/multifork.git/objects/info/alternates; ok; /$rb/source.git/objects/
47 /$rb/fork.git/objects/