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

Re: [PATCH 1/2] replace: use a GIT_NO_REPLACE_OBJECTS env variable

From
Christian Couder <chriscool@tuxfamily.org>
Date
Nov 18, 2009, 06:48 UTC
Message-ID
<200911180748.42061.chriscool@tuxfamily.org>
In-Reply-To
<4B0253DA.1090003@viscovery.net>
On mardi 17 novembre 2009, Johannes Sixt wrote:
Show 12 quoted lines
> Christian Couder schrieb:
> > diff --git a/git.c b/git.c
> > index bd2c5fe..7f7d73d 100644
> > --- a/git.c
> > +++ b/git.c
> > @@ -89,6 +89,9 @@ static int handle_options(const char ***argv, int
> > *argc, int *envchanged) *envchanged = 1;
> >  		} else if (!strcmp(cmd, "--no-replace-objects")) {
> >  			read_replace_refs = 0;
> > +			setenv(NO_REPLACE_OBJECTS_ENVIRONMENT, "", 1);
>
> It is safer to set to a non-empty string, e.g., "1".
Ok, I will use a non empty string.
> I think this variable should be added to the list in connect.c around
> line 630 so that it does not propagate to the remote end.
Ok, I have done that in the version I will send.

Thanks, Christian.

Previous: Johannes SixtNext: Michael J Gruber
Message 3 of 5 in “replace: use a GIT_NO_REPLACE_OBJECTS env variable”
  1. 1/2 replace: use a GIT_NO_REPLACE_OBJECTS env variableChristian Couder, Nov 17, 2009
  2. Johannes SixtNov 17, 2009
  3. Christian CouderNov 18, 2009
  4. Michael J GruberNov 17, 2009
  5. Christian CouderNov 18, 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.