Merge branch 'cw/no-detaching-an-unborn' into maint
authorJunio C Hamano <gitster@pobox.com>
Sun, 22 Jul 2012 20:00:31 +0000 (13:00 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sun, 22 Jul 2012 20:00:32 +0000 (13:00 -0700)
commit9ea5c632da283ff8c2dea8176cd34f1c8618d6c4
tree98c421927ea754c8eeb2733a5ec7dc09825a1cdc
parentbb3ed291a6cfd4ed58773f2158f3ae32baf066e0
parent8ced1aa08f9e1798b2b3fec41a0598ef79b477fe
Merge branch 'cw/no-detaching-an-unborn' into maint

"git checkout --detach", when you are still on an unborn branch,
should be forbidden, but it wasn't.

* cw/no-detaching-an-unborn:
  git-checkout: disallow --detach on unborn branch
builtin/checkout.c