summaryrefslogtreecommitdiff
path: root/git/remote.py
diff options
context:
space:
mode:
authorSebastian Thiel <sebastian.thiel@icloud.com>2021-06-03 09:15:39 +0800
committerGitHub <noreply@github.com>2021-06-03 09:15:39 +0800
commitbb02e1229d336decc7bae970483ff727ed7339db (patch)
treea47fdef15c0f43595952e1ca18fa6379f7ae6522 /git/remote.py
parent17643e0bd1b65155412ba5dba8f995a4f0080188 (diff)
parent4fbf0ef97d6f59d2eb0f37b29716ba0de95c4457 (diff)
downloadgitpython-bb02e1229d336decc7bae970483ff727ed7339db.tar.gz
Merge pull request #1263 from gitpython-developers/fix-1262
Don't raise on unknown line when parsing stale refs (#1262)
Diffstat (limited to 'git/remote.py')
-rw-r--r--git/remote.py2
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 + '/'):