Merge branch 'tr/copy-revisions-from-stdin' into maint
* tr/copy-revisions-from-stdin: read_revisions_from_stdin: make copies for handle_revision_arg
This commit is contained in:
commit
07e03d4665
@ -1276,7 +1276,8 @@ static void read_revisions_from_stdin(struct rev_info *revs,
|
||||
}
|
||||
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);
|
||||
}
|
||||
if (seen_dashdash)
|
||||
|
Loading…
Reference in New Issue
Block a user