Merge branch 'tr/copy-revisions-from-stdin'
A fix to a long-standing issue in the command line parser for revisions, which was triggered by mv/sequence-pick-error-diag topic. * tr/copy-revisions-from-stdin: read_revisions_from_stdin: make copies for handle_revision_argmaint
commit
8d41addacb
|
@ -1276,7 +1276,8 @@ static void read_revisions_from_stdin(struct rev_info *revs,
|
||||||
}
|
}
|
||||||
die("options not supported in --stdin mode");
|
die("options not supported in --stdin mode");
|
||||||
}
|
}
|
||||||
if (handle_revision_arg(sb.buf, revs, 0, REVARG_CANNOT_BE_FILENAME))
|
if (handle_revision_arg(xstrdup(sb.buf), revs, 0,
|
||||||
|
REVARG_CANNOT_BE_FILENAME))
|
||||||
die("bad revision '%s'", sb.buf);
|
die("bad revision '%s'", sb.buf);
|
||||||
}
|
}
|
||||||
if (seen_dashdash)
|
if (seen_dashdash)
|
||||||
|
|
Loading…
Reference in New Issue