clean: make is_git_repository a public function