only change permissions when git checkout changes