diff options
author | Niko Sams <niko.sams@gmail.com> | 2010-09-24 21:39:22 +0200 |
---|---|---|
committer | Niko Sams <niko.sams@gmail.com> | 2010-09-24 21:56:16 +0200 |
commit | b021b72ec4ca6de595294f7accbe954ee9fd9431 (patch) | |
tree | 48ab920fbaf44d550ce199e75665cb7ea68a9936 | |
parent | bf4709961337864eb0ef163bb77fc4e3ef5d166d (diff) | |
download | svn2git-b021b72ec4ca6de595294f7accbe954ee9fd9431.tar svn2git-b021b72ec4ca6de595294f7accbe954ee9fd9431.tar.gz svn2git-b021b72ec4ca6de595294f7accbe954ee9fd9431.tar.bz2 svn2git-b021b72ec4ca6de595294f7accbe954ee9fd9431.tar.xz svn2git-b021b72ec4ca6de595294f7accbe954ee9fd9431.zip |
touch fastImport process in startFastImport()
This is needed to make sure that not too many processes are running and
we run out of ressources.
Calling touch only in commit is not enough as startFastImport is called in other
functions as createBranch too - and that can result in too many processes.
-rw-r--r-- | src/repository.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/repository.cpp b/src/repository.cpp index 7f85e34..be0b0e2 100644 --- a/src/repository.cpp +++ b/src/repository.cpp @@ -701,6 +701,8 @@ void FastImportRepository::finalizeTags() void FastImportRepository::startFastImport() { + processCache.touch(this); + if (fastImport.state() == QProcess::NotRunning) { if (processHasStarted) qFatal("git-fast-import has been started once and crashed?"); |