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

Re: [PATCH] setup/rev-parse: allow HEAD to be spelled 'head'

From
Sam Vilain <sam.vilain@catalyst.net.nz>
Date
Oct 6, 2007, 22:23 UTC
Message-ID
<47080AC4.3040902@catalyst.net.nz>
In-Reply-To
<20071005065139.GA2623@steel.home>
Alex Riesen wrote:
Show 12 quoted lines
> Sam Vilain, Fri, Oct 05, 2007 05:09:10 +0200:
>> If the repository got mangled by FAT capitalization rules, then a ref
>> such as "HEAD" will become "head" once it is back on a non-FAT FS.
>> Check for this condition in resolve_refs and in the setup code.
>>
>> Suggested-by: Francois Marier <francois@debian.org>
>> Signed-off-by: Sam Vilain <sam.vilain@catalyst.net.nz>
>> ---
>>   This should probably help people putting their git repos on
>>   FAT USB sticks.
> 
> Can the people just mount FAT partitions with shortname=mixed?

Of course, that is probably a solution to the problem, whereas my patch is a workaround.

Now, I realise that this might open a can of worms ... would we also want to go looking for files called "pack-ab~1.pac" ? Almost certainly not - but this solves the most immediate problem experienced by people putting their git repositories onto FAT filesystems mounted with the default options, which will say "FATAL: not a git repository" otherwise.

Sam.
Previous: Alex RiesenNext: Johannes Schindelin
Message 4 of 6 in “setup/rev-parse: allow HEAD to be spelled 'head'”
  1. setup/rev-parse: allow HEAD to be spelled 'head'Sam Vilain, Oct 5, 2007
  2. Johannes SchindelinOct 5, 2007
  3. Alex RiesenOct 5, 2007
  4. Sam VilainOct 6, 2007
  5. Johannes SchindelinOct 7, 2007
  6. Sam VilainOct 7, 2007

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.