From: Junio C Hamano Date: Sun, 02 Mar 2008 02:27:36 GMT Subject: Re: [PATCH] Fix git reset --abort not restoring the right commit under some conditions Message-ID: <7vmyphx3l3.fsf@gitster.siamese.dyndns.org> In-Reply-To: <1204367534-28204-1-git-send-email-mh@glandium.org> Mike Hommey writes: > Previously, --abort would end by git resetting to ORIG_HEAD, but some > commands, such as git reset --hard (which happened in git rebase --skip, > but could just as well be typed by the user), modify ORIG_HEAD. > > Just use the orig-head we store in $dotest instead. What happens if we are not using $dotest but .dotest?