Skip to content

pr_finish(n) dies in pr_fetch() if remote branch already deleted #1196

Description

@jennybc
 Checking out PR 'r-lib/gh/#121' (@jennybc): 'Accept (and prioritize) URI templates (a la RFC 6570)'
✓ Switching to branch 'curly-bracket-uri-template'
✓ Setting 'origin/curly-bracket-uri-template' as remote tracking branch
Error in libgit2::git_branch_set_upstream : 
  cannot set upstream for branch 'curly-bracket-uri-template'

As a result, we never get to all the cleanup code, e.g. deleting the local branch.

Current workaround: just call pr_finish() (no argument!) again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    gitgit, GitHub, and CI in general

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions