IDEX-958: Incorrect behavior of git-checkout operation