diff options
author | Sebastian Thiel <sebastian.thiel@icloud.com> | 2021-06-03 09:15:39 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-03 09:15:39 +0800 |
commit | bb02e1229d336decc7bae970483ff727ed7339db (patch) | |
tree | a47fdef15c0f43595952e1ca18fa6379f7ae6522 | |
parent | 17643e0bd1b65155412ba5dba8f995a4f0080188 (diff) | |
parent | 4fbf0ef97d6f59d2eb0f37b29716ba0de95c4457 (diff) | |
download | gitpython-bb02e1229d336decc7bae970483ff727ed7339db.tar.gz |
Merge pull request #1263 from gitpython-developers/fix-1262
Don't raise on unknown line when parsing stale refs (#1262)
-rw-r--r-- | git/remote.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git/remote.py b/git/remote.py index e17f7bb8..6ea4b2a1 100644 --- a/git/remote.py +++ b/git/remote.py @@ -612,7 +612,7 @@ class Remote(LazyMixin, Iterable): # * [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 + '/'): |