Steps to reproduce:
1. Specify incorrect path to editor in the [core] section of .gitconfig file (in my case it was path to GitExtensions, which was deleted from the system).
2. Perform merge with conflicts resolving.
3. Run "git commit" command.
4. Get an error after which path in the console changes to current repository only (without current branch).