code: def in_git_clone():
      
      gitdir = '.git'
      return os.path.isdir(gitdir) and (
          os.path.isdir(os.path.join(gitdir, 'objects')) and
          os.path.isdir(os.path.join(gitdir, 'refs')) and
          os.path.exists(os.path.join(gitdir, 'HEAD'))
      )
docs: Returns `True` if the current directory is a git repository
  
      Logic is 'borrowed' from :func:`git.repo.fun.is_git_dir`