git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: What's cooking in git.git (Mar 2009, #03; Wed, 11)

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 12, 2009, 20:43 UTC
Message-ID
<7viqmejwtz.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<49B96F1A.3060001@lsrfire.ath.cx>
René Scharfe <rene.scharfe@lsrfire.ath.cx> writes:
Show 5 quoted lines
> Junio C Hamano schrieb:
>> Tonight's 'pu' does not pass its self-test and it is expected; I won't be
>> fixing it and I'm going to bed now.
>
> This fixes a segfault:
Oops, you're right.
Show 15 quoted lines
> diff --git a/remote.c b/remote.c
> index 68c1a84..ea1841e 100644
> --- a/remote.c
> +++ b/remote.c
> @@ -655,9 +655,9 @@ struct remote *remote_get(const char *name)
>  	struct remote *ret;
>  	int name_given = 0;
>  
>  	read_config();
> -	if (name || strcmp(name, "-"))
> +	if (name && strcmp(name, "-"))
>  		name_given = 1;
>  	else {
>  		name = default_remote_name;
>  		name_given = explicit_default_remote_name;
Previous: René Scharfe
Message 5 of 5 in “What's cooking in git.git (Mar 2009, #03; Wed, 11)”
  1. Junio C HamanoMar 11, 2009
  2. Felipe ContrerasMar 11, 2009
  3. Jay SoffianMar 11, 2009
  4. René ScharfeMar 12, 2009
  5. Junio C HamanoMar 12, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.