• Returns true if the given directory is inside a .git directory tree.

    Parameters

    • Optionaldirectory: string

      The directory to check.

    Returns Promise<boolean>

    True if the directory is inside a .git directory tree.