Re: Where does the variable GIT_HOSTING comes?
- From
Jeff King <peff@peff.net>
- Date
- Jun 24, 2021, 00:19 UTC
- Message-ID
- <YNPPkQrK8PtPAr8C@coredump.intra.peff.net>
- In-Reply-To
- <CAGP6PO+hnvAdYuMKQG15-fhRVdDBCCn2xfnLP5=exPcs4GHJVQ@mail.gmail.com>
On Thu, Jun 24, 2021 at 07:30:29AM +0800, Hongyi Zhao wrote:
Show 9 quoted lines
> On Ubuntu 20.04, see my following relevant git variables settings: > > $ env |grep GIT > GIT_SSL_NO_VERIFY=1 > GIT_HOSTING=git@git.domain.com > GIT_DISCOVERY_ACROSS_FILESYSTEM=true > > I don't set the `GIT_HOSTING' variable at all. Then where does it come > from and what's the function of it?
This variable is neither set by nor respected by Git. It may be set by a system file, or perhaps a snippet you copied into your user setup at some point. Try:
grep GIT_HOSTING ~/.bash* /etc/bash*
(that's not an exhaustive list of places the environment may get set up, but it contains the likely ones).
-Peff