Johannes Sixt [off-list ref] writes:
quoted
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?