summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/qt5_tool4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/qt5_tool b/bin/qt5_tool
index 8766b8b..b90aca6 100755
--- a/bin/qt5_tool
+++ b/bin/qt5_tool
@@ -371,7 +371,7 @@ sub winRemoveGitFromPath
sub initTrackingBranch
{
my ($branchName, $remoteBranchName) = @_;
- my $strc = execute($git, ('fetch', '--all'));
+ my $strc = execute($git, ('fetch', 'origin'));
die 'fetch failed.' if $strc;
print 'Switching to ', $branchName, ' from ', $remoteBranchName, "\n";
$strc = execute($git, ('branch', '--track', $branchName, $remoteBranchName));
@@ -515,7 +515,7 @@ sub checkoutBranch
if (!grep(/^ $desiredBranch$/, @branches)) {
my $remoteBranchName = 'origin/' . $desiredBranch;
# Does the remote branch exist?
- $rc = execute($git, ('fetch', '--all'));
+ $rc = execute($git, ('fetch', 'origin'));
die 'fetch of ' . $mod . ' failed' if ($rc);
my @availableRemoteBranches = split("\n", `"$git" branch -r`);
if (!grep(/^ $remoteBranchName$/, @availableRemoteBranches)) {