Removed redundant '.git' checking.