diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-04-19 13:40:13 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-04-19 13:40:13 -0700 |
commit | 8d41addacbf210038f929dfad4b0c7829392366c (patch) | |
tree | f1f77b1685c45188d4e5726250458c0108fe2268 | |
parent | Merge branch 'jn/add-2.0-u-A-sans-pathspec' (early part) (diff) | |
parent | read_revisions_from_stdin: make copies for handle_revision_arg (diff) | |
download | tgif-8d41addacbf210038f929dfad4b0c7829392366c.tar.xz |
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_arg
-rw-r--r-- | revision.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/revision.c b/revision.c index eb98128868..56d666d69a 100644 --- a/revision.c +++ b/revision.c @@ -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) |