Merge branch 'nd/reset-setup-worktree' into maint
commit1f569775810be1655c284076082015168865d005
authorJunio C Hamano <gitster@pobox.com>
Tue, 18 Mar 2014 21:03:24 +0000 (18 14:03 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 18 Mar 2014 21:03:24 +0000 (18 14:03 -0700)
treec773162fe6f354f2db976193410d107bff8acf45
parenta8b31316ef90153f148b685a802195885d5195f4
parentb7756d41dcc6720e6005b663bcb6f8b2f2a66763
Merge branch 'nd/reset-setup-worktree' into maint

"git reset" needs to refresh the index when working in a working
tree (it can also be used to match the index to the HEAD in an
otherwise bare repository), but it failed to set up the working
tree properly, causing GIT_WORK_TREE to be ignored.

* nd/reset-setup-worktree:
  reset: optionally setup worktree and refresh index on --mixed