Fixed possibly unused variable in GitClient

Change-Id: I6faa1ff63da8df322e2c8f98d2efd8670c341cc4
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
Robert Loehning
2011-12-08 12:59:09 +01:00
committed by Tobias Hunger
parent 7f3764bfe3
commit 0470f30b91

View File

@@ -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