Git: Allow . in checkout pathes

Task-number: QTCREATORBUG-3141
This commit is contained in:
Tobias Hunger
2010-11-22 18:05:49 +01:00
parent df4aa2d78d
commit e151381a8a
3 changed files with 4 additions and 9 deletions

View File

@@ -128,7 +128,7 @@ QString CloneWizardPage::directoryFromRepository(const QString &urlIn) const
}
// fix invalid characters
const QChar dash = QLatin1Char('-');
url.replace(QRegExp(QLatin1String("[^0-9a-zA-Z_-]")), dash);
url.replace(QRegExp(QLatin1String("[^0-9a-zA-Z_.-]")), dash);
// trim leading dashes (they are annoying and get created when using local pathes)
url.replace(QRegExp(QLatin1String("^-+")), QString());
return url;