[Bps-public-commit] git-sync branch, master, updated. 74ae0c78f5cad7519141a9f02e7079d62f7857a4

Alex Vandiver alexmv at bestpractical.com
Wed Oct 6 09:49:32 EDT 2010


The branch, master has been updated
       via  74ae0c78f5cad7519141a9f02e7079d62f7857a4 (commit)
      from  441fdb92f8fc33cb8f7f2687585e6afe41937243 (commit)

Summary of changes:
 git-sync |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit 74ae0c78f5cad7519141a9f02e7079d62f7857a4
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Tue Oct 5 16:54:58 2010 -0400

    Only start master connections if they are non-undef

diff --git a/git-sync b/git-sync
index 99ab611..af74d0c 100755
--- a/git-sync
+++ b/git-sync
@@ -281,7 +281,7 @@ stop_masters();
 sub sync_all_local {
     my %config = @_;
     my @sshmaster = ref $config{sshmaster} ? @{$config{sshmaster}} : $config{sshmaster};
-    start_master($_) for @sshmaster;
+    start_master($_) for grep {defined} @sshmaster;
     foreach my $into ( ref $config{into} ? @{$config{into}} : $config{into} ) {
         unless (-d $into) {
             print colored("  Directory '$into' does not exist!\n", "bold red");

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list