Skip to content

Commit d9faf96

Browse files
Vampiretnyblom
authored andcommitted
Do not set the working directory of the fast import processes in dry-run or create-dump mode, as the directory will not exist there and Qt 5 does not quite like that
1 parent f3cc079 commit d9faf96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/repository.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,8 @@ FastImportRepository::FastImportRepository(const Rules::Repository &rule)
279279
// create the default branch
280280
branches["master"].created = 1;
281281

282-
fastImport.setWorkingDirectory(name);
283282
if (!CommandLineParser::instance()->contains("dry-run") && !CommandLineParser::instance()->contains("create-dump")) {
283+
fastImport.setWorkingDirectory(name);
284284
if (!QDir(name).exists()) { // repo doesn't exist yet.
285285
qDebug() << "Creating new repository" << name;
286286
QDir::current().mkpath(name);

0 commit comments

Comments
 (0)