github steveukx/git-js simple-git@4.2.1

one hour ago

Patch Changes

  • 4bbbf1b: git.cmd and pathspec() values can no longer be read by git as options in two cases:

    • git pull and git remote update pass the arguments after -- to the git fetch they run without a -- of their
      own. Values starting with - after --, and pathspec() values starting with -, are now rejected for these
      commands, and when used through trusted inputs such as git.raw() they are analysed by the unsafe actions checks
      as options.
    • A literal -- in a git.cmd template only ends the options when git can't read it as the value of the option
      before it (for example commit -m -- ${value} uses -- as the commit message). Otherwise values starting with -
      are rejected after it.

    forwardsPathsAsOptions is exported from @simple-git/argv-parser.

  • Updated dependencies [4bbbf1b]

    • @simple-git/argv-parser@3.1.1

Don't miss a new git-js release

NewReleases is sending notifications on new releases.