[PATCHv4 0/3] fetch: Only call a new ref a "branch" if it's under refs/heads/.
- From
marcnarc@xiplink.com <marcnarc@xiplink.com>
- Date
- Apr 16, 2012, 22:08 UTC
- 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 commitsMarc 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.