From: Shawn O. Pearce Date: Sat, 08 Mar 2008 02:12:10 GMT Subject: Re: [PATCH] Really make the LF after reset in fast-import optional Message-ID: <20080308021210.GX8410@spearce.org> In-Reply-To: <1204921337-5204-1-git-send-email-dato@net.com.org.es> Adeodato Sim 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ó Heh, this is awesome. I got busy for a day and someone fixed my bug for me. Thanks. :-) Acked-by: Shawn O. Pearce > fast-import.c | 3 ++- > t/t9300-fast-import.sh | 2 ++ > 2 files changed, 4 insertions(+), 1 deletions(-) -- Shawn.