Fix detecting of binary file status for new files
authorThomas Zander <thomas.zander@trolltech.com>
Wed, 22 Jul 2009 19:32:42 +0000 (22 22:32 +0300)
committerThomas Zander <thomas.zander@trolltech.com>
Wed, 22 Jul 2009 19:32:42 +0000 (22 22:32 +0300)
src/hunks/ChangeSet.cpp

index de5c824..605ca83 100644 (file)
@@ -468,7 +468,7 @@ QList<File> ChangeSet::readGitDiff(QIODevice &git, File *fileToDiff)
                     storeFile();
                 m_state = InHeader;
             }
-            else if (line.startsWith("Binary files a/") && line.indexOf(" differ") > 0) {
+            else if (line.startsWith("Binary files ") && line.indexOf(" differ") > 0) {
                 Q_ASSERT(m_fileToDiff);
                 m_fileToDiff->setBinary(true);
                 return true;