Merge branch 'ef/checkout-empty' into next
commitfc4d754aa0f0b59f9e5aae11a66367f2db8d5ae0
authorJunio C Hamano <gitster@pobox.com>
Tue, 8 May 2012 19:01:51 +0000 (8 12:01 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 8 May 2012 19:01:51 +0000 (8 12:01 -0700)
tree4393760f269ebd3e8dc2f124c6c17bcad2ac7dff
parent15eb02984d4df2540d8fa9c19c979de4c00efd0d
parent8338f771fe9720766dfcb25b6dca58832e24a0fd
Merge branch 'ef/checkout-empty' into next

Running "git checkout" on an unborn branch used to corrupt HEAD
(regression in 1.7.10); this makes it error out.

By Erik Faye-Lund
* ef/checkout-empty:
  checkout: do not corrupt HEAD on empty repo
builtin/checkout.c