Skip to content

Commit 611ddb9

Browse files
committed
sequencer: left-trim the lines read from the script
Interactive rebase's scripts may be indented; We need to handle this case, too, now that we prepare the sequencer to process interactive rebases. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent 766410a commit 611ddb9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sequencer.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1158,6 +1158,9 @@ static int parse_insn_line(struct todo_item *item,
11581158
char *end_of_object_name;
11591159
int i, saved, status, padding;
11601160

1161+
/* left-trim */
1162+
bol += strspn(bol, " \t");
1163+
11611164
if (bol == eol || *bol == '\r' || *bol == comment_line_char) {
11621165
item->command = TODO_COMMENT;
11631166
item->commit = NULL;

0 commit comments

Comments
 (0)