(experimental code) push wild repos across a master slave connection
It creates the repo on the remote side (getting the creator name from the gl-creator file and sending it across), as well as sending gl-perms on subsequent connections. This has only been minimally tested. E.g., complex setups or asymmetric configs on master and slave, etc. have NOT been tested. This has also not been tested with redirected pushes.
This commit is contained in:
parent
42e0bac48c
commit
78866f6f28
3 changed files with 48 additions and 4 deletions
|
@ -45,6 +45,12 @@ if ( $cmd eq 'push' ) {
|
|||
_chdir( $rc{GL_REPO_BASE} );
|
||||
_chdir("$repo.git");
|
||||
|
||||
if (-f "gl-creator") {
|
||||
# try to propagate the wild repo, including creator name and gl-perms
|
||||
my $creator = `cat gl-creator`; chomp($creator);
|
||||
trace(1, `cat gl-perms 2>/dev/null | ssh $host CREATOR=$creator perms -c \\'$repo\\'`);
|
||||
}
|
||||
|
||||
my $errors = 0;
|
||||
for (`git push --mirror $host:$repo 2>&1`) {
|
||||
print STDERR "$_" if -t STDERR or exists $ENV{GL_USER};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue