From: Jeff King <peff@peff.net>
To: Hongyi Zhao <hongyi.zhao@gmail.com>
Cc: Git List <git@vger.kernel.org>
Subject: Re: Where does the variable GIT_HOSTING comes?
Date: Wed, 23 Jun 2021 20:19:29 -0400 [thread overview]
Message-ID: <YNPPkQrK8PtPAr8C@coredump.intra.peff.net> (raw)
In-Reply-To: <CAGP6PO+hnvAdYuMKQG15-fhRVdDBCCn2xfnLP5=exPcs4GHJVQ@mail.gmail.com>
On Thu, Jun 24, 2021 at 07:30:29AM +0800, Hongyi Zhao wrote:
> 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
next prev parent reply other threads:[~2021-06-24 0:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-23 23:30 Where does the variable GIT_HOSTING comes? Hongyi Zhao
2021-06-24 0:19 ` Jeff King [this message]
2021-06-24 0:23 ` Jeff King
2021-06-24 0:26 ` Hongyi Zhao
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=YNPPkQrK8PtPAr8C@coredump.intra.peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--cc=hongyi.zhao@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
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