Re: fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jun 8, 2007, 10:27 UTC
- Message-ID
- <7vk5uekagd.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <7vodjqkazp.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano <gitster@pobox.com> writes:
Show 9 quoted lines
> Perhaps repository was set up in an unusual way by hand > (i.e. not by a clone), such that: > > 1. you have HEAD pointing at a branch (e.g. 'refs/heads/master'), > 2. which does _not_ exist yet (i.e. no 'refs/heads/master'), > 3. yet you have a tag that you can try to detach your HEAD to (e.g. v2.6.20). > > ... well that was my initial guess, but even after setting up such a > funny repository by hand, I cannot seem to reproduce it.
Actually, that turns out to be the reason for 'maint' releases, although it works on 'master' (hence will be in 1.5.3 later).
How did you get your repository into such a state to begin with?