From: Junio C Hamano Date: Wed, 20 Jan 2010 08:34:50 GMT Subject: Re: [RFC/PATCHv8 00/10] git notes Message-ID: <7vhbqh5g45.fsf@alter.siamese.dyndns.org> In-Reply-To: <4B56BC22.1040702@viscovery.net> Johannes Sixt writes: >> Subject: Fix "checkout A..." synonym for "checkout A...HEAD" on Windows >> ... >> Work this issue around by first calling check_ref_format(new.path) to see >> if the string can possibly be a valid ref under "refs/heads/", before >> asking resolve_ref(). > > Your patch fixes the failure very nicely, thank you very much. > > BTW, calling 'git pack-refs --all' before 'git checkout master...' > helps as well :-P Thanks for a prompt response (given our timezone difference ;-) I've been thinking about moving that check even further down, namely at the beginning of resolve_ref(), as anything that is not valid cannot possibly resolve correctly. What do people think?