Re: Bug: `git init` with hook `reference-transaction` running `git rev-parse --git-dir` fails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ah, jeah thats true:

The command in question which is git rev-parse --git-dir to find the actual GIT_DIR is actually the issue here: It relies on having a proper HEAD despite the docs saying it only reports GIT_DIR if set etc...

Could we maybe make these commands more agnostic? Making an empty HEAD probably directly also resolves these commands to work correctly.

Gabriel

-----Original Message-----
From: Patrick Steinhardt <ps@xxxxxx>
To: Gabriel Nützi <gnuetzi@xxxxxxxxx>
Cc: git@xxxxxxxxxxxxxxx, Karthik Nayak <karthik.188@xxxxxxxxx>
Subject: Re: Bug: git init with hook reference-transaction running git rev-parse --git-dir fails
Date: 10/07/2024 12:57:19 PM

git rev-parse --git-dir

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux