aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThiago Macieira <thiago@cassini.local.lan>2007-12-24 14:06:08 -0200
committerThiago Macieira <thiago@cassini.local.lan>2007-12-24 14:06:08 -0200
commit9fa82b403b5fef362b36d9f3ad199fd016c2ee96 (patch)
treee2875c389303bf5d66f788c0b5b0125d9b95342d
parent61ae76bdcac1746db955100df02ff5bd8db0c774 (diff)
downloadsvn2git-9fa82b403b5fef362b36d9f3ad199fd016c2ee96.tar
svn2git-9fa82b403b5fef362b36d9f3ad199fd016c2ee96.tar.gz
svn2git-9fa82b403b5fef362b36d9f3ad199fd016c2ee96.tar.bz2
svn2git-9fa82b403b5fef362b36d9f3ad199fd016c2ee96.tar.xz
svn2git-9fa82b403b5fef362b36d9f3ad199fd016c2ee96.zip
Output dry-run data to a file, for analysis later
-rw-r--r--src/repository.cpp3
1 files changed, 2 insertions, 1 deletions
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
}