Commit 4b02f6a7 authored by Aleksey Pivovarov's avatar Aleksey Pivovarov Committed by intellij-monorepo-bot
Browse files

vcs: do not log PCE

EA-214571 - PCE: GitExecutableManager.lambda$getVersionOrCancel$

GitOrigin-RevId: 835511f6d2f0f993470c53dee8e54e5607fd96f9
parent 71c6def5
Branches unavailable Tags unavailable
No related merge requests found
Showing with 10 additions and 4 deletions
+10 -4
......@@ -6,6 +6,7 @@ import com.intellij.openapi.Disposable
import com.intellij.openapi.application.runInEdt
import com.intellij.openapi.diagnostic.logger
import com.intellij.openapi.fileEditor.FileDocumentManager
import com.intellij.openapi.progress.ProcessCanceledException
import com.intellij.openapi.project.Project
import com.intellij.openapi.ui.Messages.*
import com.intellij.openapi.util.Disposer
......@@ -215,11 +216,16 @@ abstract class AbstractCommitWorkflow(val project: Project) {
private fun runBeforeCommitHandlersChecks(executor: CommitExecutor?): CheckinHandler.ReturnResult {
commitHandlers.forEachLoggingErrors(LOG) { handler ->
if (handler.acceptExecutor(executor)) {
LOG.debug("CheckinHandler.beforeCheckin: $handler")
try {
if (handler.acceptExecutor(executor)) {
LOG.debug("CheckinHandler.beforeCheckin: $handler")
val result = handler.beforeCheckin(executor, commitContext.additionalDataConsumer)
if (result != CheckinHandler.ReturnResult.COMMIT) return result
val result = handler.beforeCheckin(executor, commitContext.additionalDataConsumer)
if (result != CheckinHandler.ReturnResult.COMMIT) return result
}
}
catch (e: ProcessCanceledException) {
return CheckinHandler.ReturnResult.CANCEL
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment