added changes to correctly create and checkout temp dir when needed
added changes to correctly create and checkout temp dir when needed

wanghaolong/t1,nhanma/example,KingShadow/GitNow,jamzhu/rep001,talkmithilesh/try_git,hansprimandala/ticgit,KingShadow/MyGitTest,jamzhu/rep001,rcarone/project1,hansprimandala/ticgit