{"thread":{"id":"46604","subject":"git reset","startedAt":"2017-08-16T12:21:53Z","lastAt":"2017-08-16T17:06:52Z","messageCount":2,"participants":["Efim Goncharuk","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"326499","messageId":"34910856-7DE9-41A0-A7A6-B572B1C88C1F@gmail.com","threadId":"46604","inReplyTo":null,"subject":"git reset","fromName":"Efim Goncharuk","fromEmail":"efimster@gmail.com","sentAt":"2017-08-16T12:21:46Z","receivedAt":"2017-08-16T12:21:53Z","isPatch":false,"sender":{"key":"efimster@gmail.com","avatar":null},"body":"Hello,\n\nStarting from git v.2.13.0 onwards (v 2.12.2 works fine)\n\ngit reset --hard with --work-tree and --git-dir options does not move HEAD to hash/tag specified. HEAD remains on same position.\n\nExample:\n\n> git --work-tree=lib/core --git-dir=lib/core/.git/ reset --hard 0.1.0\n\n\nNote:\non another hand\n> git -C lib/core reset --hard 0.1.0\n\n\nRegards,\nEfim Goncharuk\n\n"},{"id":"326513","messageId":"xmqqziazo31d.fsf@gitster.mtv.corp.google.com","threadId":"46604","inReplyTo":"34910856-7DE9-41A0-A7A6-B572B1C88C1F@gmail.com","subject":"Re: git reset","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2017-08-16T17:06:38Z","receivedAt":"2017-08-16T17:06:52Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Efim Goncharuk <efimster@gmail.com> writes:\n\n> Starting from git v.2.13.0 onwards (v 2.12.2 works fine)\n>\n> git reset --hard with --work-tree and --git-dir options does not move HEAD to hash/tag specified. HEAD remains on same position.\n>\n> Example:\n>\n>> git --work-tree=lib/core --git-dir=lib/core/.git/ reset --hard 0.1.0\n>\n>\n> Note:\n> on another hand\n>> git -C lib/core reset --hard 0.1.0\n\n... \"works\", I presume.\n\nThanks for a report.\n\nA quick bisection points at f57f37e2 (\"files-backend: remove the use\nof git_path()\", 2017-03-26), which is not unexpected.  I didn't dig\nfurther and do not expect have time to do so myself for some time,\nthough.\n\n"}]}