Skip to content

scripts/worktree.sh fails when working offline due to unhandled git fetch #58

Closed

Description

@Yash990-bit

Description

When working offline or without internet access, running scripts/worktree.sh new <name> or scripts/worktree.sh remove <name> immediately fails and aborts because git fetch returns exit code 128.

Steps to reproduce

  1. Disconnect network or turn on Airplane Mode.
  2. In the repository root, try to create a worktree for a new task:
    scripts/worktree.sh new offline-test

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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