[tbb-commits] [rbm/master] Only run 'git checkout --detach' when necessary