Kind of fixing problem when workspace is empty. Real fix needs new feature in git-client-plugin