From: Thiago Macieira Date: Mon, 24 Dec 2007 16:06:08 +0000 (-0200) Subject: Output dry-run data to a file, for analysis later X-Git-Url: http://andersk.mit.edu/gitweb/svn-all-fast-export.git/commitdiff_plain/9fa82b403b5fef362b36d9f3ad199fd016c2ee96 Output dry-run data to a file, for analysis later --- diff --git a/src/repository.cpp b/src/repository.cpp index 20ea049..05f01e1 100644 --- a/src/repository.cpp +++ b/src/repository.cpp @@ -36,7 +36,6 @@ Repository::Repository(const Rules::Repository &rule) branches["master"].isCreated = true; fastImport.setWorkingDirectory(name); - fastImport.setProcessChannelMode(QProcess::ForwardedChannels); } Repository::~Repository() @@ -102,8 +101,10 @@ void Repository::startFastImport() if (fastImport.state() == QProcess::NotRunning) { // start the process #ifndef DRY_RUN + fastImport.setProcessChannelMode(QProcess::ForwardedChannels); fastImport.start("git-fast-import", QStringList()); #else + fastImport.setStandardOutputFile(name); fastImport.start("/bin/cat", QStringList()); #endif }