diff --git a/git/remote.py b/git/remote.py index e17f7bb8c..6ea4b2a1a 100644 --- a/git/remote.py +++ b/git/remote.py @@ -612,7 +612,7 @@ def stale_refs(self) -> IterableList: # * [would prune] origin/new_branch token = " * [would prune] " if not line.startswith(token): - raise ValueError("Could not parse git-remote prune result: %r" % line) + continue ref_name = line.replace(token, "") # sometimes, paths start with a full ref name, like refs/tags/foo, see #260 if ref_name.startswith(Reference._common_path_default + '/'):