add .git dir support