"Uncaught (in promise) Error: Git status failed" since 1.40

In tree view and tabs files are not highlighted according to their status and there is “Uncaught (in promise) Error: Git status failed” error in inspector’s console.
“GitHub” package works fine.

For anyone seeing this post: