git-svn: Disambiguate rev-list arguments to improve error message

Add "--" in the "git rev-list" command line so that if there is a bug and the revisions cannot be found, the error message is a bit less cryptic. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Acked-by: Eric Wong <normalperson@yhbt.net>

Michael Haggerty committed Jun 18, 2011 at 08:47 UTC eabd73a3b587615ca60e820dfa1b8802d1659db3
1 file changed +2 -2
git-svn.perl
+2 -2
@@ -3154,9 +3154,9 @@ sub check_cherry_pick {
3154 my $parents = shift;
3155 my @ranges = @_;
3156 my %commits = map { $_ => 1 }
3157 - _rev_list("--no-merges", $tip, "--not", $base, @$parents);
3157 + _rev_list("--no-merges", $tip, "--not", $base, @$parents, "--");
3158 for my $range ( @ranges ) {
3159 - delete @commits{_rev_list($range)};
3159 + delete @commits{_rev_list($range, "--")};
3160 }
3161 for my $commit (keys %commits) {
3162 if (has_no_changes($commit)) {