Skip to contentSkip to conversation

"am --abort" broken?

Bug? Junio C Hamano 2 participants 3 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

This is somewhat minor but will confuse people who do not know how to manually recover from. Start "am" without giving an input file by mistake:

    $ git am ;# no input file
    ^C

At this point, you are still in "am" session; completion will tell you that you are in a middle of "am/rebase". A more recent way to get out of this is to use "am --abort", but you get this:

    $ git am --abort
    Resolve operation not in progress, we are not resuming.

"git am" from 'maint' will help you get out of it, or you can do it the old fashioned way:

    $ rm -fr .git/rebase-apply

I think this is a recent breakage after merging the topic to add "rebase --autostash", but I haven't looked into it yet.

#1 lore raw
Quoted 5 lines · Junio C Hamano
    $ git am ;# no input file
    ^C
    $ git am --abort
    Resolve operation not in progress, we are not resuming.

I tried it on git 1.8.3, and this only incidentally "seems" to half-work (?)

% git am
^C
% git am --abort
cat: /home/artagnon/src/git/.git/rebase-apply/next: No such file or directory % git status
# On branch master
# Your branch is behind 'origin/master' by 1 commit, and can be fast-forwarded. #
nothing to commit, working directory clean

In the process of aborting, it blew away one commit!

Quoted 2 lines

I think this is a recent breakage after merging the topic to add "rebase --autostash", but I haven't looked into it yet.

Yes, I can confirm that my topic introduced this bug, and I apologize for not having caught it. I'm looking into the problem.

Thanks.

#2 lore raw
Quoted 5 lines · Ramkumar Ramachandra
Quoted 2 lines

I think this is a recent breakage after merging the topic to add "rebase --autostash", but I haven't looked into it yet.

Yes, I can confirm that my topic introduced this bug, and I apologize for not having caught it. I'm looking into the problem.

No need to apologize; nobody caught it during the review.

And thanks for volunteering.