OSDN Git Service

Merge branch 'rr/push-head'
authorJunio C Hamano <gitster@pobox.com>
Thu, 6 Jun 2013 19:19:00 +0000 (12:19 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 6 Jun 2013 19:19:00 +0000 (12:19 -0700)
"git push $there HEAD:branch" did not resolve HEAD early enough, so
it was easy to flip it around while push is still going on and push
out a branch that the user did not originally intended when the
command was started.

* rr/push-head:
  push: make push.default = current use resolved HEAD
  push: fail early with detached HEAD and current
  push: factor out the detached HEAD error message


Trivial merge