forked from qt-creator/qt-creator
		
	VCS[git]: Make push/pull synchronous commands.
..for timeout handling to take effect. Also, log window will update continuously. Task-number: QTCREATORBUG-777
This commit is contained in:
		@@ -778,10 +778,14 @@ Utils::SynchronousProcessResponse
 | 
			
		||||
    // Run!
 | 
			
		||||
    const Utils::SynchronousProcessResponse sp_resp = process.run(binary, arguments);
 | 
			
		||||
 | 
			
		||||
    // Fail message?
 | 
			
		||||
    if (sp_resp.result != Utils::SynchronousProcessResponse::Finished &&
 | 
			
		||||
        (!(flags & SuppressFailMessageInLogWindow)))
 | 
			
		||||
        outputWindow->appendError(sp_resp.exitMessage(binary, timeOutMS));
 | 
			
		||||
    // Success/Fail message in appropriate window?
 | 
			
		||||
    if (sp_resp.result == Utils::SynchronousProcessResponse::Finished) {
 | 
			
		||||
        if (flags & ShowSuccessMessage)
 | 
			
		||||
            outputWindow->append(sp_resp.exitMessage(binary, timeOutMS));
 | 
			
		||||
    } else {
 | 
			
		||||
        if (!(flags & SuppressFailMessageInLogWindow))
 | 
			
		||||
            outputWindow->appendError(sp_resp.exitMessage(binary, timeOutMS));
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    return sp_resp;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user