diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2018-05-03 16:51:11 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2018-05-03 16:51:37 -0700 |
commit | 6afa84d467f4afc459bbe0c3038e680592b5dae5 (patch) | |
tree | bc4667f0d911791b8a7019139b527645788692e4 /bin/git-push-all | |
parent | 56e3d5a02449a2ec5f7604ed8bf33d7ae070b26b (diff) | |
download | dotfiles-6afa84d467f4afc459bbe0c3038e680592b5dae5.tar.gz |
git-push-all doesn't create new branches on tracking remote, either
Diffstat (limited to 'bin/git-push-all')
-rwxr-xr-x | bin/git-push-all | 3 |
1 files changed, 2 insertions, 1 deletions
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 { |