Skip to content

Commit c7864da

Browse files
neverpanictnyblom
authored andcommitted
Always mark repositories case-sensitive (svn-all-fast-export#21)
This fixes a problem on platforms where git automatically defaults to case-insensitive repositories (e.g. OS X and Windows), where case-only renames would be simply ignored.
1 parent abc0951 commit c7864da

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/repository.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,10 @@ FastImportRepository::FastImportRepository(const Rules::Repository &rule)
288288
init.setWorkingDirectory(name);
289289
init.start("git", QStringList() << "--bare" << "init");
290290
init.waitForFinished(-1);
291+
QProcess casesensitive;
292+
casesensitive.setWorkingDirectory(name);
293+
casesensitive.start("git", QStringList() << "config" << "core.ignorecase" << "false");
294+
casesensitive.waitForFinished(-1);
291295
// Write description
292296
if (!rule.description.isEmpty()) {
293297
QFile fDesc(QDir(name).filePath("description"));

0 commit comments

Comments
 (0)