Package: git Version: 1:2.1.4-2.1 Severity: normal Tags: upstream $ git branch HEAD fatal: it does not make sense to create 'HEAD' manually # OK, special casing prevents this $ git checkout -b HEAD Switched to a new branch 'HEAD' # but not this :-P $ git checkout master Switched to branch 'master' $ git checkout HEAD warning: refname 'HEAD' is ambiguous. Switched to branch 'HEAD' # oops ;-) $ git checkout master Switched to branch 'master' $ git branch -d HEAD Deleted branch HEAD (was 6e54945). # OK, we can easily cleanup this mess again
The same works in 1:2.4.6-1 in sid. If there is some special casing for HEAD in git branch, the same should probably be done for git checkout -b, too. Andreas -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org