* Bug? git rebase -i --autostash fails to restore working files
@ 2016-07-28 10:58 Phillip Wood
2016-07-28 13:02 ` Remi Galan Alfonso
0 siblings, 1 reply; 3+ messages in thread
From: Phillip Wood @ 2016-07-28 10:58 UTC (permalink / raw)
To: git
When running ‘git rebase -i --autostash’ if the editor fails then the
rebase fails but stash is not applied so the working files are not
restored. Running ‘git rebase --abort’ replies that there’s no rebase
in progress. If you notice what’s happened it’s not a problem if you
know to do ‘git stash apply <autostash id>’ but it’s confusing as
normally the stash would be automatically applied. This happened to me
when I messed up my editor configuration but you can reproduce it with
$ GIT_SEQUENCE_EDITOR=false git rebase -i --autostash HEAD^^
Created autostash: ff960d4
HEAD is now at f1b8af7 [git] Turn on rebase.missingCommitsCheck
Could not execute editor
$ git rebase --abort
No rebase in progress?
Best Wishes
Phillip
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Bug? git rebase -i --autostash fails to restore working files
2016-07-28 10:58 Bug? git rebase -i --autostash fails to restore working files Phillip Wood
@ 2016-07-28 13:02 ` Remi Galan Alfonso
2016-07-28 17:29 ` Phillip Wood
0 siblings, 1 reply; 3+ messages in thread
From: Remi Galan Alfonso @ 2016-07-28 13:02 UTC (permalink / raw)
To: phillip wood; +Cc: git
Hi Phillip,
Phillip Wood <phillip.wood@talktalk.net> writes:
> When running ‘git rebase -i --autostash’ if the editor fails then the
> rebase fails but stash is not applied so the working files are not
> restored. Running ‘git rebase --abort’ replies that there’s no rebase
> in progress. If you notice what’s happened it’s not a problem if you
> know to do ‘git stash apply <autostash id>’ but it’s confusing as
> normally the stash would be automatically applied. This happened to me
> when I messed up my editor configuration but you can reproduce it with
>
> $ GIT_SEQUENCE_EDITOR=false git rebase -i --autostash HEAD^^
> Created autostash: ff960d4
> HEAD is now at f1b8af7 [git] Turn on rebase.missingCommitsCheck
[I'm happy to see rebase.missingCommitsCheck being used.]
> Could not execute editor
>
> $ git rebase --abort
> No rebase in progress?
I remembered having read something about it recently and a quick
search confirmed it. It was corrected in commit 33ba9c6 (29/06/2016,
rebase -i: restore autostash on abort) that recently graduated to
master (on 19/07/2016 if I read the various "What's cooking"
correctly). So you will need to build git from source to have this
corrected.
> Best Wishes
>
> Phillip
Thanks,
Rémi
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Bug? git rebase -i --autostash fails to restore working files
2016-07-28 13:02 ` Remi Galan Alfonso
@ 2016-07-28 17:29 ` Phillip Wood
0 siblings, 0 replies; 3+ messages in thread
From: Phillip Wood @ 2016-07-28 17:29 UTC (permalink / raw)
To: Remi Galan Alfonso, phillip wood; +Cc: git
On 28/07/16 14:02, Remi Galan Alfonso wrote:
> Hi Phillip,
>
> Phillip Wood <phillip.wood@talktalk.net> writes:
>> When running ‘git rebase -i --autostash’ if the editor fails then the
>> rebase fails but stash is not applied so the working files are not
>> restored. Running ‘git rebase --abort’ replies that there’s no rebase
>> in progress. If you notice what’s happened it’s not a problem if you
>> know to do ‘git stash apply <autostash id>’ but it’s confusing as
>> normally the stash would be automatically applied. This happened to me
>> when I messed up my editor configuration but you can reproduce it with
>>
>> $ GIT_SEQUENCE_EDITOR=false git rebase -i --autostash HEAD^^
>> Created autostash: ff960d4
>> HEAD is now at f1b8af7 [git] Turn on rebase.missingCommitsCheck
>
> [I'm happy to see rebase.missingCommitsCheck being used.]
>
>> Could not execute editor
>>
>> $ git rebase --abort
>> No rebase in progress?
>
> I remembered having read something about it recently and a quick
> search confirmed it. It was corrected in commit 33ba9c6 (29/06/2016,
> rebase -i: restore autostash on abort) that recently graduated to
> master (on 19/07/2016 if I read the various "What's cooking"
> correctly). So you will need to build git from source to have this
> corrected.
Hi Rémi
Thanks for the reply, it's good to know it's been fixed.
Best Wishes
Phillip
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-07-28 17:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-28 10:58 Bug? git rebase -i --autostash fails to restore working files Phillip Wood
2016-07-28 13:02 ` Remi Galan Alfonso
2016-07-28 17:29 ` Phillip Wood
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).