git/list[1] front-page[2] threads[3] people[4] search[5] about
 

RE: "fatal: Not a git repository" issued during 'make' from source code

From
MJMun Johl <mun.johl@wdc.com>
Date
Aug 12, 2023, 05:38 UTC
Message-ID
<SJ0PR04MB8289E60CA76DF65C17A79DF49C11A@SJ0PR04MB8289.namprd04.prod.outlook.com>
In-Reply-To
<ZNbYNxEfPYAB3ILb@pobox.com>
Hi Todd,
Show 36 quoted lines
> Hi,
> 
> Mun Johl wrote:
> > I am new to git and am trying to compile git-2.41.0 on RHEL7.
> 
> This isn't a direct answer to the question (which Randall
> and Junio have covered well), but if you're interested, I
> build git-2.41.0 for RHEL/CentOS 7 (as well as newer
> RHEL/Rocky/Alma and Fedora release) in the Fedora Copr
> ("Community projects"):
> 
>     https://copr.fedorainfracloud.org/coprs/g/git-maint/git/
> 
> I currently maintain the git package in Fedora and try to
> ensure it always builds for all supported RHEL releases¹.
> 
> For RHEL/CentOS 7, the steps to install would be:
> 
>     yum install yum-plugin-copr
>     yum copr enable @git-maint/git
>     yum install git
> 
> The upside is that it's a current git build packaged the
> same as the RHEL package.  The downside is that it updates
> the RHEL package, which may not be acceptable in your
> environment.
> 
> It's certainly a big jump from 1.8.3.1 to 2.41.0.  I had
> forgotten how ancient the RHEL 7 git package was. :)
> 
> Alternately, building a git package for RHEL 7 from the
> current Fedora git package is another option, if you'd
> rather have an rpm to install on multiple hosts.
> 
> ¹ I may not continue this due to Red Hat's recent decision
>   to restrict access to RHEL source code, unfortunately.[Mun] 
[Mun] Thank you for the link and the additional information!  I am going to try a little more to see if I can get git compiled from source code; but if I get blocked I may download your build :)  It's nice to have options.
Thank you and best regards,
-- 
Mun
Previous: Todd Zullinger
Message 21 of 21 in “"fatal: Not a git repository" issued during 'make' from source code”
  1. Mun JohlAug 11, 2023
  2. rsbecker@nexbridge.comAug 11, 2023
  3. Mun JohlAug 11, 2023
  4. Mun JohlAug 11, 2023
  5. rsbecker@nexbridge.comAug 11, 2023
  6. Junio C HamanoAug 11, 2023
  7. Junio C HamanoAug 11, 2023
  8. rsbecker@nexbridge.comAug 11, 2023
  9. Mun JohlAug 11, 2023
  10. Junio C HamanoAug 11, 2023
  11. Mun JohlAug 12, 2023
  12. rsbecker@nexbridge.comAug 11, 2023
  13. Junio C HamanoAug 11, 2023
  14. rsbecker@nexbridge.comAug 11, 2023
  15. Mun JohlAug 12, 2023
  16. rsbecker@nexbridge.comAug 14, 2023
  17. Mun JohlAug 15, 2023
  18. rsbecker@nexbridge.comAug 15, 2023
  19. Mun JohlAug 16, 2023
  20. Todd ZullingerAug 12, 2023
  21. Mun JohlAug 12, 2023

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.