{"thread":{"id":"55997","subject":"Where does the variable GIT_HOSTING comes?","startedAt":"2021-06-23T23:30:46Z","lastAt":"2021-06-24T00:27:02Z","messageCount":4,"participants":["Hongyi Zhao","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"428343","messageId":"CAGP6PO+hnvAdYuMKQG15-fhRVdDBCCn2xfnLP5=exPcs4GHJVQ@mail.gmail.com","threadId":"55997","inReplyTo":null,"subject":"Where does the variable GIT_HOSTING comes?","fromName":"Hongyi Zhao","fromEmail":"hongyi.zhao@gmail.com","sentAt":"2021-06-23T23:30:29Z","receivedAt":"2021-06-23T23:30:46Z","isPatch":false,"sender":{"key":"hongyi.zhao@gmail.com","avatar":null},"body":"Hi all,\n\nOn Ubuntu 20.04, see my following relevant git variables settings:\n\n$ env |grep GIT\nGIT_SSL_NO_VERIFY=1\nGIT_HOSTING=git@git.domain.com\nGIT_DISCOVERY_ACROSS_FILESYSTEM=true\n\nI don't set the `GIT_HOSTING' variable at all. Then where does it come\nfrom and what's the function of it?\n\nRegards\n-- \nAssoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>\nTheory and Simulation of Materials\nHebei Vocational University of Technology and Engineering\nNO. 552 North Gangtie Road, Xingtai, China\n"},{"id":"428349","messageId":"YNPPkQrK8PtPAr8C@coredump.intra.peff.net","threadId":"55997","inReplyTo":"CAGP6PO+hnvAdYuMKQG15-fhRVdDBCCn2xfnLP5=exPcs4GHJVQ@mail.gmail.com","subject":"Re: Where does the variable GIT_HOSTING comes?","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2021-06-24T00:19:29Z","receivedAt":"2021-06-24T00:19:33Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Thu, Jun 24, 2021 at 07:30:29AM +0800, Hongyi Zhao wrote:\n\n> On Ubuntu 20.04, see my following relevant git variables settings:\n> \n> $ env |grep GIT\n> GIT_SSL_NO_VERIFY=1\n> GIT_HOSTING=git@git.domain.com\n> GIT_DISCOVERY_ACROSS_FILESYSTEM=true\n> \n> I don't set the `GIT_HOSTING' variable at all. Then where does it come\n> from and what's the function of it?\n\nThis variable is neither set by nor respected by Git. It may be set by a\nsystem file, or perhaps a snippet you copied into your user setup at\nsome point. Try:\n\n  grep GIT_HOSTING ~/.bash* /etc/bash*\n\n(that's not an exhaustive list of places the environment may get set up,\nbut it contains the likely ones).\n\n-Peff\n"},{"id":"428350","messageId":"YNPQcAnIh8APLFxk@coredump.intra.peff.net","threadId":"55997","inReplyTo":"YNPPkQrK8PtPAr8C@coredump.intra.peff.net","subject":"Re: Where does the variable GIT_HOSTING comes?","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2021-06-24T00:23:12Z","receivedAt":"2021-06-24T00:23:15Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Wed, Jun 23, 2021 at 08:19:30PM -0400, Jeff King wrote:\n\n> On Thu, Jun 24, 2021 at 07:30:29AM +0800, Hongyi Zhao wrote:\n> \n> > On Ubuntu 20.04, see my following relevant git variables settings:\n> > \n> > $ env |grep GIT\n> > GIT_SSL_NO_VERIFY=1\n> > GIT_HOSTING=git@git.domain.com\n> > GIT_DISCOVERY_ACROSS_FILESYSTEM=true\n> > \n> > I don't set the `GIT_HOSTING' variable at all. Then where does it come\n> > from and what's the function of it?\n> \n> This variable is neither set by nor respected by Git. It may be set by a\n> system file, or perhaps a snippet you copied into your user setup at\n> some point. Try:\n> \n>   grep GIT_HOSTING ~/.bash* /etc/bash*\n> \n> (that's not an exhaustive list of places the environment may get set up,\n> but it contains the likely ones).\n\nLooks like you might have \"bash-it\" set up:\n\n  https://github.com/Bash-it/bash-it/search?q=GIT_HOSTING\n\n-Peff\n"},{"id":"428351","messageId":"CAGP6POL6EOMgKWZUneHoveJnX3dn7YjF4303+RGo6Lkm17-5mw@mail.gmail.com","threadId":"55997","inReplyTo":"YNPQcAnIh8APLFxk@coredump.intra.peff.net","subject":"Re: Where does the variable GIT_HOSTING comes?","fromName":"Hongyi Zhao","fromEmail":"hongyi.zhao@gmail.com","sentAt":"2021-06-24T00:26:46Z","receivedAt":"2021-06-24T00:27:02Z","isPatch":false,"sender":{"key":"hongyi.zhao@gmail.com","avatar":null},"body":"On Thu, Jun 24, 2021 at 8:23 AM Jeff King <peff@peff.net> wrote:\n>\n> On Wed, Jun 23, 2021 at 08:19:30PM -0400, Jeff King wrote:\n>\n> > On Thu, Jun 24, 2021 at 07:30:29AM +0800, Hongyi Zhao wrote:\n> >\n> > > On Ubuntu 20.04, see my following relevant git variables settings:\n> > >\n> > > $ env |grep GIT\n> > > GIT_SSL_NO_VERIFY=1\n> > > GIT_HOSTING=git@git.domain.com\n> > > GIT_DISCOVERY_ACROSS_FILESYSTEM=true\n> > >\n> > > I don't set the `GIT_HOSTING' variable at all. Then where does it come\n> > > from and what's the function of it?\n> >\n> > This variable is neither set by nor respected by Git. It may be set by a\n> > system file, or perhaps a snippet you copied into your user setup at\n> > some point. Try:\n> >\n> >   grep GIT_HOSTING ~/.bash* /etc/bash*\n> >\n> > (that's not an exhaustive list of places the environment may get set up,\n> > but it contains the likely ones).\n>\n> Looks like you might have \"bash-it\" set up:\n>\n>   https://github.com/Bash-it/bash-it/search?q=GIT_HOSTING\n\nExactly. I forgot this. You're absolutely right, see below for more\ndetailed info:\n\n$ grep -B1 GIT_HOSTING ~/.bash* /etc/bash*\n/home/werner/.bashrc-  # Your place for hosting Git repos. I use this\nfor private repos.\n/home/werner/.bashrc:  export GIT_HOSTING='git@git.domain.com'\n\nHY\n-- \nAssoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>\nTheory and Simulation of Materials\nHebei Vocational University of Technology and Engineering\nNO. 552 North Gangtie Road, Xingtai, China\n"}]}