Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
miriam-lam-sndk opened this issue Jan 28, 2025 · 0 comments
Open

Comments

@miriam-lam-sndk
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant