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:23:12 -0400 [thread overview]
Message-ID: <YNPQcAnIh8APLFxk@coredump.intra.peff.net> (raw)
In-Reply-To: <YNPPkQrK8PtPAr8C@coredump.intra.peff.net>
On Wed, Jun 23, 2021 at 08:19:30PM -0400, Jeff King wrote:
> 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).
Looks like you might have "bash-it" set up:
https://github.com/Bash-it/bash-it/search?q=GIT_HOSTING
-Peff
next prev parent reply other threads:[~2021-06-24 0:23 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
2021-06-24 0:23 ` Jeff King [this message]
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=YNPQcAnIh8APLFxk@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