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

git-fetch fails if remote is detached HEAD

From
APAndy Parkins <andyparkins@gmail.com>
Date
Jan 19, 2007, 11:44 UTC
Message-ID
<200701191144.35773.andyparkins@gmail.com>
Hello,

Running git-fetch from a remote repository that has a detached head fails with:

fatal: '/path/to/repository/.git': unable to chdir or not a git archive
A simple checkout at the remote end, and everything is fine again.

I can't quite see why fetch is interested in the remote HEAD at all? The only time that is ever needed is during a clone isn't it?

Andy
-- 
Dr Andrew Parkins, M Eng (Hons), AMIEE
andyparkins@gmail.com
Next: Junio C Hamano
Message 1 of 2 in “git-fetch fails if remote is detached HEAD”
  1. Andy ParkinsJan 19, 2007
  2. Junio C HamanoJan 19, 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.