From 6afa84d467f4afc459bbe0c3038e680592b5dae5 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Thu, 3 May 2018 16:51:11 -0700 Subject: git-push-all doesn't create new branches on tracking remote, either --- bin/git-push-all | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin/git-push-all') diff --git a/bin/git-push-all b/bin/git-push-all index 1bb53806..03cd29d0 100755 --- a/bin/git-push-all +++ b/bin/git-push-all @@ -72,7 +72,8 @@ foreach my $branch ( @branches ) { && "remotes/$pushDefault/$branch" ~~ @allBranches ) { # print "I: pushing $branch to $pushDefault (the remote.pushDefault)\n"; push @{ $pushes{$pushDefault} }, $branch; - } elsif ( !defined $pushDefault && defined $tracking ) { + } elsif ( !defined $pushDefault && defined $tracking + && "remotes/$tracking/$branch" ~~ @allBranches ) { # print "I: pushing $branch to $tracking (probably to its tracking branch)\n"; push @{ $pushes{$tracking} }, $branch; } else { -- cgit v1.2.3