Documentation for Simbo's Packages
    Preparing search index...

    Function gitBuffer

    • Runs a Git command and returns its raw standard output, for binary data.

      The arguments are passed to Git as given, without a shell. Pass untrusted values only after --end-of-options or --, never as options: some options, such as --upload-pack, make Git run commands.

      Parameters

      • args: readonly string[]

        The Git arguments.

      • options: GitOptions = {}

        Options for running the command.

      Returns Promise<Buffer<ArrayBufferLike>>

      The standard output as buffer.

      if Git cannot be started, exits with a non-zero code, or exceeds maxBuffer.