From e94df6acd3e22ce0ec7f727076fd9046d96d57b2 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Mon, 4 Jul 2011 20:53:48 +0200 Subject: Fixes #23 --- git/remote.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'git/remote.py') 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 -- cgit v1.2.1