Skip to content

Commit 21e6d5f

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 <[email protected]>
1 parent c9e282d commit 21e6d5f

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
@@ -1157,6 +1157,9 @@ static int parse_insn_line(struct todo_item *item,
11571157
char *end_of_object_name;
11581158
int i, saved, status, padding;
11591159

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

0 commit comments

Comments
 (0)