Why do we need a git checkout here? A comment explaining would be nice.