Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'tr/copy-revisions-from-stdin' into maint
author
Junio C Hamano
<gitster@pobox.com>
Thu, 9 May 2013 19:42:17 +0000
(12:42 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 9 May 2013 19:42:17 +0000
(12:42 -0700)
* tr/copy-revisions-from-stdin:
read_revisions_from_stdin: make copies for handle_revision_arg
revision.c
patch
|
blob
|
history
raw
(from parent 1:
ea2d20d
)
diff --git
a/revision.c
b/revision.c
index cf620c6b3693e2d18b2cacd33574a03b34e4c48e..9df13ca86000d9399a9493024751f93a17c51831 100644
(file)
--- 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)