Skip to content

Options as an array of strings does not work for git push #505

Closed
@ssmereka

Description

The documentation says you can use an array of strings for options

Screen Shot 2020-08-21 at 8 11 37 AM

However the following doesn't work:

await this.git.push(remote, branch, ['--tags'])
error TS2345: Argument of type 'string[]' is not assignable to parameter of type 'Record<string, OptionsValues>'.
      Index signature is missing in type 'string[]'.

Am I doing something wrong or is this a bug?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions