Your message dated Sun, 22 Sep 2019 08:03:37 +0200
with message-id <[email protected]>
and subject line Fixed in git 2.16.0
has caused the Debian Bug report #793884,
regarding git: allows nonsensical command 'git checkout -b HEAD'
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
793884: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=793884
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
Package: git
Version: 1:2.16.1-1
Since version 2.16.0, git no longer lets you create a branch named
HEAD. From the release notes:
,----
| * "git branch" and "git checkout -b" are now forbidden from creating
| a branch whose name is "HEAD".
`----
--- End Message ---