Skip to content

fetch doesn't have any sort of error handling #828

Closed

Description

@shiftkey

Exit code 128 is raised when the remote URL doesn't act like a Git server.

A rough example of how to wire this up:

  const opts = {
    successExitCodes: new Set([ 0, 128 ]),
    env:  envForAuthentication(user)
  }
  await git([ 'fetch', '--prune', remote ], repository.path, 'fetch', opts)

cc @iAmWillShepherd

Activity

  1. added this to the M2: Dev Another Day milestone on Jan 19, 2017
  2. self-assigned this
    on Jan 19, 2017
  3. locked as resolved and limited conversation to collaborators on Jul 23, 2018
  4. unlocked this conversation on Sep 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions