Re: [PATCH 2/2] setup.c: re-fix d95138e (setup: set env $GIT_WORK_TREE when ..
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Dec 5, 2015, 19:12 UTC
- Message-ID
- <CACsJy8BKbzzE7D0a2HqjU3kvz1SitcJyVxZH=aWAc+bBd8MmQg@mail.gmail.com>
- In-Reply-To
- <1449166676-30845-2-git-send-email-pclouds@gmail.com>
On Thu, Dec 3, 2015 at 7:17 PM, Nguyễn Thái Ngọc Duy <pclouds@gmail.com> wrote:
Show 6 quoted lines
> The solution in d95138e is reverted in this commit. Instead we reuse the > solution from c056261 [4]. c056261 fixes another setup-messed-up-by-alias > by saving and restoring env for git-clone and git-init. Now I conclude > that setup-messed-by-alias is always evil. So the env restoration is > done for _all_ commands whenever aliases are involved. It fixes what > d95138e tries to fix. And it does not upset git-clone-inside-hooks.
(Reviewer hat on) I wrote env restoration is done for all commands, but the patch is actually about all _builtin_ commands. External ones do not receive this treatment. FIx is in the next reroll.
-- Duy