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

Re: v1.7.0-rc0 shows lots of "unable to find <sha1>" on git-stash

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 30, 2010, 20:25 UTC
Message-ID
<7vvdejmjaj.fsf@alter.siamese.dyndns.org>
In-Reply-To
<7v8wbfnyz9.fsf@alter.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
> Please try this.
oops, but with this, too.
Show 11 quoted lines
> diff --git a/submodule.c b/submodule.c
> index ca0527f..8bd0a30 100644
> --- a/submodule.c
> +++ b/submodule.c
> ...
> @@ -142,7 +142,9 @@ int is_submodule_modified(const char *path)
>  	env[0] = strbuf_detach(&buf, NULL);
>  	strbuf_addf(&buf, "GIT_DIR=%s/.git", path);
>  	env[1] = strbuf_detach(&buf, NULL);
> -	env[2] = NULL;
> +	strbuf_addf(&buf, "GIT_INDEX_FILE=");
This should be:
	strbuf_addf(&buf, "GIT_INDEX_FILE");
Show 5 quoted lines
> +	env[2] = strbuf_detach(&buf, NULL);
> +	env[3] = NULL;
>  
>  	memset(&cp, 0, sizeof(cp));
>  	cp.argv = argv;
Previous: Junio C HamanoNext: Junio C Hamano
Message 8 of 13 in “v1.7.0-rc0 shows lots of "unable to find <sha1>" on git-stash”
  1. Jonathan del StrotherJan 29, 2010
  2. Jonathan del StrotherJan 30, 2010
  3. Jens LehmannJan 30, 2010
  4. Jonathan del StrotherJan 30, 2010
  5. Jens LehmannJan 30, 2010
  6. Jonathan del StrotherJan 30, 2010
  7. Junio C HamanoJan 30, 2010
  8. Junio C HamanoJan 30, 2010
  9. is_submodule_modified(): fix breakage with external GIT_INDEX_FILEJunio C Hamano, Jan 30, 2010
  10. Jonathan del StrotherJan 31, 2010
  11. Jonathan del StrotherJan 31, 2010
  12. Junio C HamanoJan 31, 2010
  13. Jens LehmannJan 30, 2010

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.