diff options
author | 2015-11-24 04:55:58 +0530 | |
---|---|---|
committer | 2015-11-24 04:55:58 +0530 | |
commit | 6f62ca0deef500d9714d0bae81244923f80dbd39 (patch) | |
tree | 84349377e0f7c40128af8f911e5fa9b64fd8d017 | |
parent | add line about ^C to usage message of access command (diff) | |
download | gitolite-gentoo-6f62ca0deef500d9714d0bae81244923f80dbd39.tar.gz gitolite-gentoo-6f62ca0deef500d9714d0bae81244923f80dbd39.tar.bz2 gitolite-gentoo-6f62ca0deef500d9714d0bae81244923f80dbd39.zip |
add repo name to mirror status output
-rwxr-xr-x | src/commands/mirror | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/commands/mirror b/src/commands/mirror index dbdc952..0403b83 100755 --- a/src/commands/mirror +++ b/src/commands/mirror @@ -97,7 +97,7 @@ if ( $cmd eq 'push' ) { _chdir("$repo.git"); $host = '*' if $host eq 'all'; - map { print_status($_) } sort glob("gl-slave-$host.status"); + map { print_status($repo, $_) } sort glob("gl-slave-$host.status"); } else { # strictly speaking, we could allow some of the possible commands remotely # also, at least for admins. However, these commands are mainly intended @@ -137,11 +137,12 @@ sub repo_master { } sub print_status { + my $repo = shift; my $file = shift; return unless -f $file; my $slave = $1 if $file =~ /^gl-slave-(.+)\.status$/; print "----------\n"; - print "WARNING: previous mirror push to host '$slave' failed, status is:\n"; + print "WARNING: previous mirror push of repo '$repo' to host '$slave' failed, status is:\n"; print slurp($file); print "----------\n"; } |