Re: [PATCH] Fixed crash in fetching remote tags when there is not tags.
- From
- Väinö Järvelä <v@pp.inet.fi>
- Date
- Oct 9, 2007, 10:52 UTC
- Message-ID
- <81553116-3A4F-4526-A772-9A43C53D3E22@pp.inet.fi>
- In-Reply-To
- <1191919868-4963-2-git-send-email-v@pp.inet.fi>
Hi,
These patches should have been numbered, sorry, The test patch was supposed be number 1 of 2.
The patches were done on top of next. The fix should be checked, as it's mostly a quick fix to get it to work, probably not the correct way to fix that bug, or is it?
-- Väinö
On Oct 9, 2007, at 11:51, Väinö Järvelä wrote:
Show 26 quoted lines
> Signed-off-by: Väinö Järvelä <v@pp.inet.fi>
> ---
> remote.c | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/remote.c b/remote.c
> index e7d735b..5e92378 100644
> --- a/remote.c
> +++ b/remote.c
> @@ -537,6 +537,8 @@ static int count_refspec_match(const char
> *pattern,
>
> static void tail_link_ref(struct ref *ref, struct ref ***tail)
> {
> + if (!ref) return;
> +
> **tail = ref;
> while (ref->next)
> ref = ref->next;
> --
> 1.5.3.4.1156.g5407-dirty
>
> -
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html