Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 21eda4f

Browse files
author
Owen Smith
committed
Merge branch 'fix/fetch-any-ref' into 0.3
2 parents 2ffde74 + 1469214 commit 21eda4f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

git/remote.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -271,14 +271,10 @@ def _from_line(cls, repo, line, fetch_line):
271271
ref_type = None
272272
if remote_local_ref == "FETCH_HEAD":
273273
ref_type = SymbolicReference
274-
elif ref_type_name in ("remote-tracking", "branch"):
275-
# note: remote-tracking is just the first part of the 'remote-tracking branch' token.
276-
# We don't parse it correctly, but its enough to know what to do, and its new in git 1.7something
277-
ref_type = RemoteReference
278274
elif ref_type_name == "tag":
279275
ref_type = TagReference
280276
else:
281-
raise TypeError("Cannot handle reference type: %r" % ref_type_name)
277+
ref_type = RemoteReference
282278
#END handle ref type
283279

284280
# create ref instance

0 commit comments

Comments
 (0)