8000 stale_refs failing due to unhandled "xxxxxx will become dangling!" message · Issue #1262 · gitpython-developers/GitPython · GitHub
[go: up one dir, main page]

Skip to content
stale_refs failing due to unhandled "xxxxxx will become dangling!" message #1262
Closed
@afeblot

Description

@afeblot

With a repo set up in way that git remote prune --dry-run originreturns the following:

URL: .... my repo utl...
 * [would prune] origin/some-branch
 * [would prune] origin/some-more-branches
 * [would prune] origin/main
 refs/remotes/origin/HEAD will become dangling!

stale_refs throws ValueError: Could not parse git-remote prune result: ' refs/remotes/origin/HEAD will become dangling!'
I suppose this warning message should just silently be skipped at https://github.com/gitpython-developers/GitPython/blob/main/git/remote.py#L614

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0