Adeodato Sim <dato@xxxxxxxxxxxxxx> wrote: > cmd_from() ends with a call to read_next_command(), which is needed > when using cmd_from() from commands where from is not the last element. > > With reset, however, "from" is the last command, after which the flow > returns to the main loop, which calls read_next_command() again. > > Because of this, always set unread_command_buf in cmd_reset_branch(), > even if cmd_from() was successful. > > Add a test case for this in t9300-fast-import.sh. > > Signed-off-by: Adeodato Simó <dato@xxxxxxxxxxxxxx> Heh, this is awesome. I got busy for a day and someone fixed my bug for me. Thanks. :-) Acked-by: Shawn O. Pearce <spearce@xxxxxxxxxxx> > fast-import.c | 3 ++- > t/t9300-fast-import.sh | 2 ++ > 2 files changed, 4 insertions(+), 1 deletions(-) -- Shawn. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html