forked from qt-creator/qt-creator
Fixed possibly unused variable in GitClient
Change-Id: I6faa1ff63da8df322e2c8f98d2efd8670c341cc4 Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
committed by
Tobias Hunger
parent
7f3764bfe3
commit
0470f30b91
@@ -1478,8 +1478,8 @@ QStringList GitClient::synchronousRepositoryBranches(const QString &repositoryUR
|
||||
|
||||
const QString pattern = QLatin1String("\trefs/heads/");
|
||||
const int pos = line.lastIndexOf(pattern);
|
||||
const QString branchName = line.mid(pos + pattern.count());
|
||||
if (pos != -1) {
|
||||
const QString branchName = line.mid(pos + pattern.count());
|
||||
if (line.startsWith(headSha))
|
||||
branches[0] = branchName;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user