fix --work-tree bug
need to define die
git needs --git-dir