From: Johannes Sixt <j.sixt@viscovery•net>
To: Christian Couder <chriscool@tuxfamily•org>
Cc: Junio C Hamano <gitster@pobox•com>,
git@vger•kernel.org, Michael J Gruber <git@drmicha•warpmail.net>,
Jakub Narebski <jnareb@gmail•com>, bill lam <cbill.lam@gmail•com>,
Andreas Schwab <schwab@linux-m68k•org>,
Paul Mackerras <paulus@samba•org>
Subject: Re: [PATCH 1/2] replace: use a GIT_NO_REPLACE_OBJECTS env variable
Date: Tue, 17 Nov 2009 08:42:18 +0100 [thread overview]
Message-ID: <4B0253DA.1090003@viscovery.net> (raw)
In-Reply-To: <20091117051125.3588.91072.chriscool@tuxfamily.org>
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".
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.
-- Hannes
next prev parent reply other threads:[~2009-11-17 7:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-17 5:11 [PATCH 1/2] replace: use a GIT_NO_REPLACE_OBJECTS env variable Christian Couder
2009-11-17 7:42 ` Johannes Sixt [this message]
2009-11-18 6:48 ` Christian Couder
2009-11-17 9:33 ` Michael J Gruber
2009-11-18 6:49 ` Christian Couder
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B0253DA.1090003@viscovery.net \
--to=j.sixt@viscovery$(echo .)net \
--cc=cbill.lam@gmail$(echo .)com \
--cc=chriscool@tuxfamily$(echo .)org \
--cc=git@drmicha$(echo .)warpmail.net \
--cc=git@vger$(echo .)kernel.org \
--cc=gitster@pobox$(echo .)com \
--cc=jnareb@gmail$(echo .)com \
--cc=paulus@samba$(echo .)org \
--cc=schwab@linux-m68k$(echo .)org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox