install: post-checkout: run only on branches/tags
install: post-checkout: run only on branches/tags

We shouldn't try to automatically checkout in detached HEAD state, as we
might break the rebase process.

Fixes #3107

efiop/dvc,efiop/dvc,dmpetrov/dataversioncontrol,dmpetrov/dataversioncontrol