diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-05-09 12:42:17 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-05-09 12:42:17 -0700 |
commit | 07e03d466531397f9a78534ccac98b61bbafbdd6 (patch) | |
tree | 6cb08796932c6add7ca6820616303d4ad575cd20 | |
parent | t5004: avoid using tar for checking emptiness of archive (diff) | |
parent | read_revisions_from_stdin: make copies for handle_revision_arg (diff) | |
download | tgif-07e03d466531397f9a78534ccac98b61bbafbdd6.tar.xz |
Merge branch 'tr/copy-revisions-from-stdin' into maint
* 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 cf620c6b36..9df13ca860 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) |