From: Junio C Hamano Date: Mon, 05 Jan 2009 00:41:03 GMT Subject: Re: git-branch --print-current Message-ID: <7v1vvitwio.fsf@gitster.siamese.dyndns.org> In-Reply-To: <9b18b3110901040535m1f67cb7er95823d31443ee971@mail.gmail.com> demerphq writes: > The version im using, from git version 1.6.0.4.724.ga0d3a produces the > following error: > > cut: ./HEAD: No such file or directory > > when in the .git/refs directory. Personally, I think you are nuts to be in .git/refs and want to use that information for anything useful, but if it is an easy enough fix, a patch would be useful. Shawn?