Unset GIT_WORK_TREE before cloning git repo

Pull request for debian bug 682067 message #72 (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=682067#72)