Commit 0ef2f65b authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Tobias Hunger
Browse files

Git: Do not fail on add branch when no tracking branch selected



Change-Id: Icf278e4969ca98a8081d6a12be08e61670c8dbaa
Reviewed-by: default avatarTobias Hunger <tobias.hunger@nokia.com>
parent 284ab01d
......@@ -501,7 +501,9 @@ QModelIndex BranchModel::addBranch(const QString &branchName, bool track, const
QStringList args;
args << (track ? QLatin1String("--track") : QLatin1String("--no-track"));
args << branchName << startPoint;
args << branchName;
if (!startPoint.isEmpty())
args << startPoint;
if (!m_client->synchronousBranchCmd(m_workingDirectory, args, &output, &errorMessage)) {
VcsBase::VcsBaseOutputWindow::instance()->appendError(errorMessage);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment