aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@trolltech.com>2007-12-28 19:59:06 +0100
committerThiago Macieira <thiago.macieira@trolltech.com>2007-12-28 19:59:06 +0100
commitf34275cff05668492a134a69cacac16f799c2493 (patch)
tree3c96b9a3962e57eaa58951ef56342c6edb2ef478
parentbb416d33bd42c89e0ca3e7563ff57fe6d77a1bc2 (diff)
downloadsvn2git-f34275cff05668492a134a69cacac16f799c2493.tar
svn2git-f34275cff05668492a134a69cacac16f799c2493.tar.gz
svn2git-f34275cff05668492a134a69cacac16f799c2493.tar.bz2
svn2git-f34275cff05668492a134a69cacac16f799c2493.tar.xz
svn2git-f34275cff05668492a134a69cacac16f799c2493.zip
Fix the double UTF-8 encoding of the author name. In hindsight I maybe shouldn't have used QTextStream.
-rw-r--r--src/repository.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/repository.cpp b/src/repository.cpp
index aef71a1..ab4c1bf 100644
--- a/src/repository.cpp
+++ b/src/repository.cpp
@@ -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) {