From: marcnarc@xiplink.com Date: Mon, 16 Apr 2012 22:08:47 GMT Subject: [PATCHv4 0/3] fetch: Only call a new ref a "branch" if it's under refs/heads/. Message-ID: <1334614130-31826-1-git-send-email-marcnarc@xiplink.com> In-Reply-To: <1334591542-25136-1-git-send-email-marcnarc@xiplink.com> It turns out that ref->peer_ref is always NULL in update_local_ref(). So I made its caller pass in the full remote ref as a new parameter. I also added a unit test. This series is a complete resend of all the patches discussed in these threads, including Jens's submodule recursion fix. builtin/fetch.c | 39 +++++++++++++++++++++++++-------------- t/t5510-fetch.sh | 28 ++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+), 14 deletions(-) Jens Lehmann (1): submodules: recursive fetch also checks new tags for submodule commits Marc Branchaud (2): fetch: Pass both the full remote ref and its short name to update_local_ref(). fetch: Use the remote's ref name to decide how to describe new refs. M.