{"thread":{"id":"6442","subject":"git-fetch fails if remote is detached HEAD","startedAt":"2007-01-19T11:44:32Z","lastAt":"2007-01-19T22:23:20Z","messageCount":2,"participants":["Andy Parkins","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"32088","messageId":"200701191144.35773.andyparkins@gmail.com","threadId":"6442","inReplyTo":null,"subject":"git-fetch fails if remote is detached HEAD","fromName":"Andy Parkins","fromEmail":"andyparkins@gmail.com","sentAt":"2007-01-19T11:44:32Z","receivedAt":"2007-01-19T11:44:32Z","isPatch":false,"sender":{"key":"andyparkins@gmail.com","avatar":null},"body":"Hello,\n\nRunning git-fetch from a remote repository that has a detached head \nfails with:\n\nfatal: '/path/to/repository/.git': unable to chdir or not a git archive\n\nA simple checkout at the remote end, and everything is fine again.\n\nI can't quite see why fetch is interested in the remote HEAD at all?  \nThe only time that is ever needed is during a clone isn't it?\n\n\nAndy\n-- \nDr Andrew Parkins, M Eng (Hons), AMIEE\nandyparkins@gmail.com\n"},{"id":"32093","messageId":"7v7ivifyg7.fsf@assigned-by-dhcp.cox.net","threadId":"6442","inReplyTo":"200701191144.35773.andyparkins@gmail.com","subject":"Re: git-fetch fails if remote is detached HEAD","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2007-01-19T22:23:20Z","receivedAt":"2007-01-19T22:23:20Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"I think it is trying to see if it is a git archive, and\nthe version of upload-pack you are invoking is not detached-HEAD\naware.\n"}]}