Skip to content

Improve error reporting for no such reference #1660

Open
@jsoref

Description

@jsoref

https://github.com/check-spelling-sandbox/actions-checkout-no-such-branch/actions/runs/8296847126/workflow

name: checkout missing branch

on:
  push:

jobs:
  checkout:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v4
        with:
          ref: no-such-branch

https://github.com/check-spelling-sandbox/actions-checkout-no-such-branch/actions/runs/8296847126

Annotations

1 error

checkout
The process '/usr/bin/git' failed with exit code 1

Logs
Fetching the repository
  /usr/bin/git -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth=1 origin +refs/heads/no-such-branch*:refs/remotes/origin/no-such-branch* +refs/tags/no-such-branch*:refs/tags/no-such-branch*
  The process '/usr/bin/git' failed with exit code 1
  Waiting 17 seconds before trying again
  /usr/bin/git -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth=1 origin +refs/heads/no-such-branch*:refs/remotes/origin/no-such-branch* +refs/tags/no-such-branch*:refs/tags/no-such-branch*
  The process '/usr/bin/git' failed with exit code 1
  Waiting 17 seconds before trying again
  /usr/bin/git -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth=1 origin +refs/heads/no-such-branch*:refs/remotes/origin/no-such-branch* +refs/tags/no-such-branch*:refs/tags/no-such-branch*
  Error: The process '/usr/bin/git' failed with exit code 1

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