added trap to the git-subtree.sh