There was an error while loading. Please reload this page.
1 parent e9bd048 commit e94df6aCopy full SHA for e94df6a
2 files changed
git/remote.py
@@ -271,7 +271,9 @@ def _from_line(cls, repo, line, fetch_line):
271
ref_type = None
272
if remote_local_ref == "FETCH_HEAD":
273
ref_type = SymbolicReference
274
- elif ref_type_name == "branch":
+ 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
278
elif ref_type_name == "tag":
279
ref_type = TagReference
0 commit comments