Do not save a slug if there are untracked changes.
Exclude .platform from the tree ID.