[FIXED JENKINS-18988]

CGit's checkout --force is behaving differently from JGit's checkout --force, so handle the difference by ourselves