git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Where does the variable GIT_HOSTING comes?
@ 2021-06-23 23:30 Hongyi Zhao
  2021-06-24  0:19 ` Jeff King
  0 siblings, 1 reply; 4+ messages in thread
From: Hongyi Zhao @ 2021-06-23 23:30 UTC (permalink / raw)
  To: Git List

Hi all,

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?

Regards
-- 
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Vocational University of Technology and Engineering
NO. 552 North Gangtie Road, Xingtai, China

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Where does the variable GIT_HOSTING comes?
  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
  0 siblings, 1 reply; 4+ messages in thread
From: Jeff King @ 2021-06-24  0:19 UTC (permalink / raw)
  To: Hongyi Zhao; +Cc: Git List

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Where does the variable GIT_HOSTING comes?
  2021-06-24  0:19 ` Jeff King
@ 2021-06-24  0:23   ` Jeff King
  2021-06-24  0:26     ` Hongyi Zhao
  0 siblings, 1 reply; 4+ messages in thread
From: Jeff King @ 2021-06-24  0:23 UTC (permalink / raw)
  To: Hongyi Zhao; +Cc: Git List

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Where does the variable GIT_HOSTING comes?
  2021-06-24  0:23   ` Jeff King
@ 2021-06-24  0:26     ` Hongyi Zhao
  0 siblings, 0 replies; 4+ messages in thread
From: Hongyi Zhao @ 2021-06-24  0:26 UTC (permalink / raw)
  To: Jeff King; +Cc: Git List

On Thu, Jun 24, 2021 at 8:23 AM Jeff King <peff@peff.net> wrote:
>
> 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

Exactly. I forgot this. You're absolutely right, see below for more
detailed info:

$ grep -B1 GIT_HOSTING ~/.bash* /etc/bash*
/home/werner/.bashrc-  # Your place for hosting Git repos. I use this
for private repos.
/home/werner/.bashrc:  export GIT_HOSTING='git@git.domain.com'

HY
-- 
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Vocational University of Technology and Engineering
NO. 552 North Gangtie Road, Xingtai, China

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-06-24  0:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2021-06-24  0:26     ` Hongyi Zhao

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).