FIX: set m_pulledNewBranch = false in case no new branch has to be fetched from remote repository.
This commit is contained in:
		@@ -736,29 +736,28 @@ bool Worker::customerEnvironment() {
 | 
			
		||||
    if (QDir(m_customerRepository).exists()) {
 | 
			
		||||
        if (m_clone == false) {
 | 
			
		||||
            if (m_gc.branchExistsRemotely()) {
 | 
			
		||||
                QString msg("PULL NEW BRANCH " + m_branchName);
 | 
			
		||||
                QStringList lst(msg);
 | 
			
		||||
                ISMAS(lst) << (GUI(lst) << (CONSOLE(lst) << UPDATE_STEP::PULL_NEW_BRANCH));
 | 
			
		||||
                QString msg;
 | 
			
		||||
                QStringList lst;
 | 
			
		||||
                if (!m_gc.branchExistsLocally()) {
 | 
			
		||||
                    lst.clear();
 | 
			
		||||
                    msg = QString("PULLING OF NEW BRANCH " + m_branchName + " DOES NOT EXIST LOCALLY");
 | 
			
		||||
                    QStringList lst(msg);
 | 
			
		||||
                    lst << msg;
 | 
			
		||||
                    CONSOLE(lst) << UPDATE_STEP::PULL_NEW_BRANCH;
 | 
			
		||||
                    if (!m_gc.gitPullNewBranches()) {
 | 
			
		||||
                        msg = QString("PULLING OF NEW BRANCH " + m_branchName + "FAILED");
 | 
			
		||||
                        QStringList lst(msg);
 | 
			
		||||
                        lst.clear();
 | 
			
		||||
                        msg = QString("PULLING OF NEW BRANCH " + m_branchName + " FAILED");
 | 
			
		||||
                        lst << msg;
 | 
			
		||||
                        ISMAS(lst) << (GUI(lst) << (CONSOLE(lst) << (m_lastFailedUpdateStep = UPDATE_STEP::PULL_NEW_BRANCH_FAILURE)));
 | 
			
		||||
                        return false;
 | 
			
		||||
                    } else {
 | 
			
		||||
                        msg = QString("PULLING OF NEW BRANCH " + m_branchName + "SUCCESS");
 | 
			
		||||
                        QStringList lst(msg);
 | 
			
		||||
                        lst.clear();
 | 
			
		||||
                        msg = QString("PULLING OF NEW BRANCH " + m_branchName + " SUCCESS");
 | 
			
		||||
                        lst << msg;
 | 
			
		||||
                        ISMAS(lst) << (GUI(lst) << (CONSOLE(lst) << (m_lastFailedUpdateStep = UPDATE_STEP::PULL_NEW_BRANCH_SUCCESS)));
 | 
			
		||||
                        m_pulledNewBranch = true;
 | 
			
		||||
                    }
 | 
			
		||||
                } else {
 | 
			
		||||
                    msg = QString("PULLING ALREADY EXISTING LOCAL BRANCH " + m_branchName + "SUCCESS");
 | 
			
		||||
                    QStringList lst(msg);
 | 
			
		||||
                    ISMAS(lst) << (GUI(lst) << (CONSOLE(lst) << (m_lastFailedUpdateStep = UPDATE_STEP::PULL_NEW_BRANCH_SUCCESS)));
 | 
			
		||||
                    m_pulledNewBranch = true;
 | 
			
		||||
                    m_pulledNewBranch = false;
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user