diff --git a/git/git_client.cpp b/git/git_client.cpp index 41f3f9c..2709df7 100644 --- a/git/git_client.cpp +++ b/git/git_client.cpp @@ -83,10 +83,17 @@ bool GitClient::gitCloneCustomerRepository() { QRegularExpressionMatch match = re.match(result); if (match.hasMatch()) { if (re.captureCount() == 3) { // start with full match (0), then the other 3 matches - if (match.captured(2).trimmed() == m_customerNr) { + QString const &customerNr = match.captured(2).trimmed(); + if (customerNr == m_customerNr) { qInfo() << "CLONING" << m_repositoryPath << "OK"; return true; } + Utils::printCriticalErrorMsg( + QString("ERROR CLONE RESULT HAS WRONG CUSTOMER-NR. rcc=%1 customer=%2 CLONE_RESULT=%3") + .arg(re.captureCount()) + .arg(customerNr) + .arg(result)); + return false; } } Utils::printCriticalErrorMsg(