Chop a trailing / of the repository url -> no clean path necessary

This commit is contained in:
Gerhard Hoffmann 2024-07-17 14:50:32 +02:00
parent a4bb993217
commit 5beb235d92

View File

@ -74,6 +74,11 @@ int main(int argc, char *argv[]) {
parser.readSettings(); parser.readSettings();
QString repositoryUrl = parser.repositoryUrl(); QString repositoryUrl = parser.repositoryUrl();
if (repositoryUrl.endsWith('/')) {
repositoryUrl.chop(1);
}
QString gitSSHCommand(""); QString gitSSHCommand("");
if (repositoryUrl.contains("ptu-config.atb-comm.de")) { if (repositoryUrl.contains("ptu-config.atb-comm.de")) {