RE: "fatal: Not a git repository" issued during 'make' from source code
Show 28 quoted lines
> -----Original Message-----
> From: Junio C Hamano <gitster@pobox.com>
> Sent: Friday, August 11, 2023 2:46 PM
> To: Mun Johl <Mun.Johl@wdc.com>
> Cc: rsbecker@nexbridge.com; git@vger.kernel.org
> Subject: Re: "fatal: Not a git repository" issued during 'make' from source code
>
> CAUTION: This email originated from outside of Western Digital. Do not click on links or open attachments unless you recognize the
> sender and know that the content is safe.
>
>
> Mun Johl <Mun.Johl@wdc.com> writes:
>
> > Due to some "security precautions", I am unable to use 'git clone
> > https://git.kernel.org/pub/scm/git/git.git' to download the source
> > code. But I can try to figure out a workaround for that if that
> > is my only option at this point to successfully compile git.
>
> If building from tarball extract fails with "not a git repository"
> there is something very wrong with what you are doing, and we do not
> know what it is.
>
> Most likely cause new folks fail to build from the source is lack of
> necessary development libraries and packages that need to be
> installed in their build environment, but I am reasonably certain
> that if a tarball extract build is failing due to their environment,
> build in a clone of the source repository would fail for exactly the
> same reason.
[Mun] Good point. I'm certain I don't have all of the requisite packages. I was expecting to see errors about missing packages, but was thrown off by the fatal error. I will go back and look closely at the output from 'make' and see if I see any errors prior to the fatal error.
Thank you and regards,
--
Mun