fix the new git tests
delete temp directory when the test finishes
delete temp directory when the test finishes
Merge pull request #1816 from devoncarew/devoncarew_fix_git_test

fix the new git tests