]> andersk Git - svn-all-fast-export.git/commitdiff
Fix the double UTF-8 encoding of the author name. In hindsight I maybe shouldn't...
authorThiago Macieira <thiago.macieira@trolltech.com>
Fri, 28 Dec 2007 18:59:06 +0000 (19:59 +0100)
committerThiago Macieira <thiago.macieira@trolltech.com>
Fri, 28 Dec 2007 18:59:06 +0000 (19:59 +0100)
src/repository.cpp

index aef71a16e70e846d1de5d63711aa660a016e534a..ab4c1bf82b3face6973148ad4791ae669dee97a3 100644 (file)
@@ -138,9 +138,9 @@ void Repository::startFastImport()
         outputFile.replace('/', '_');
         outputFile.prepend("log-");
         fastImport.setStandardOutputFile(outputFile, QIODevice::Append);
+        fastImport.setProcessChannelMode(QProcess::MergedChannels);
 
 #ifndef DRY_RUN
-        fastImport.setProcessChannelMode(QProcess::ForwardedChannels);
         fastImport.start("git-fast-import", QStringList());
 #else
         fastImport.start("/bin/cat", QStringList());
@@ -206,7 +206,7 @@ void Repository::Transaction::commit()
         QTextStream s(&repository->fastImport);
         s << "commit " << branchRef << endl;
         s << "mark :" << revnum << endl;
-        s << "committer " << author << ' ' << datetime << " -0000" << endl;
+        s << "committer " << QString::fromUtf8(author) << ' ' << datetime << " -0000" << endl;
 
         Branch &br = repository->branches[branch];
         if (!br.created) {
This page took 0.308653 seconds and 5 git commands to generate.