For some git actions pressing Esc for the dialog of action confirmation didn't cancel the action. I moved asking for confirmation to a separate function and a bit changed notifications about canceled action.
is_uri