Don't show bisect branches in 'vng branch'
authorThomas Zander <thomas.zander@trolltech.com>
Fri, 24 Jul 2009 06:25:42 +0000 (24 09:25 +0300)
committerThomas Zander <thomas.zander@trolltech.com>
Fri, 24 Jul 2009 06:25:42 +0000 (24 09:25 +0300)
src/Configuration.cpp

index 25302cd..036d225 100644 (file)
@@ -297,6 +297,10 @@ void Configuration::fetchBranches()
             break;
         if (lineLength > 46) { // only take stuff that is in the 'refs' dir.
             QString name = QString::fromUtf8(buf + 46);
+            const bool remotes = name.startsWith(QLatin1String("remotes/"));
+            if (!remotes && !name.startsWith(QLatin1String("heads/")))
+                continue;
+
             name = name.trimmed(); // remove linefeed
             Branch branch(name, QString::fromLatin1(buf, 40));
             if (name.startsWith(QLatin1String("remotes")))