Skip to content

Incorrect ref returns ambiguous 'failed with exit code 1' error #2052

Open
@miriam-lam-sndk

Description

@miriam-lam-sndk
Fetching the repository
  "C:\Program Files\Git\bin\git.exe" -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth=1 origin +refs/heads/badrefname!:refs/remotes/origin/badrefname!+refs/tags/badrefname!:refs/tags/badrefname!
  The process 'C:\Program Files\Git\bin\git.exe' failed with exit code 1

When given an incorrect or malformed ref, the action does not return the actual git error message. I expect an error like error: pathspec 'badrefname!' did not match any file(s) known to git

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions