diff options
Diffstat (limited to 'git/remote.py')
-rw-r--r-- | git/remote.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/git/remote.py b/git/remote.py index a3b91113..07019038 100644 --- a/git/remote.py +++ b/git/remote.py @@ -271,7 +271,9 @@ class FetchInfo(object): ref_type = None if remote_local_ref == "FETCH_HEAD": ref_type = SymbolicReference - elif ref_type_name == "branch": + elif ref_type_name in ("remote-tracking", "branch"): + # note: remote-tracking is just the first part of the 'remote-tracking branch' token. + # We don't parse it correctly, but its enough to know what to do, and its new in git 1.7something ref_type = RemoteReference elif ref_type_name == "tag": ref_type = TagReference |