Switching Branches leaves files from previous branch
austinamorusocfc opened this issue · 5 comments
Description
Switching between branches leaves file from other branch in file system and in Kactus.
Version
- Kactus: Version 0.3.12
- Operating system: OSX Version 10.13.6
Steps to Reproduce
Expected Behavior
Only files from the branch are visible in Kactus and the file system.
Actual Behavior
Files from pervious branch are present after switching in current branch
Additional Information
Makes Kactus unusable as designers don't understand whats happening.
Logs
2018-07-25.kactus.production.log
2018-07-30.kactus.production.log
2018-08-09.kactus.production.log
2018-08-16.kactus.production.log
git post-commit hook that runs this script seems to fix the issue
#!/bin/sh
[ "$SKIP_POST_CHECKOUT" = 1 ] && exit 0
rm -f -r ./*
SKIP_POST_CHECKOUT=1 git checkout .
oh interesting, it's because sketch files are git ignored so they will stay on the disk when switching branches.
I'll think about a solution (I don't think the post-commit hook is correct since it's going to remove every files which is not what you want in the general case)
It actually looks like all files well at the very least the folders that kactus make stick around from the pervious branch.
Just logged #125 that I'm guessing is related to this.
I think it's should be fixed in 0.3.17. Feel free to re-open if it's not