summaryrefslogtreecommitdiff
path: root/bin/git-push-all
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2018-05-03 16:51:11 -0700
committerSean Whitton <spwhitton@spwhitton.name>2018-05-03 16:51:37 -0700
commit6afa84d467f4afc459bbe0c3038e680592b5dae5 (patch)
treebc4667f0d911791b8a7019139b527645788692e4 /bin/git-push-all
parent56e3d5a02449a2ec5f7604ed8bf33d7ae070b26b (diff)
downloaddotfiles-6afa84d467f4afc459bbe0c3038e680592b5dae5.tar.gz
git-push-all doesn't create new branches on tracking remote, either
Diffstat (limited to 'bin/git-push-all')
-rwxr-xr-xbin/git-push-all3
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 {