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>
This commit is contained in:
parent
555bdc66ea
commit
eabd73a3b5
@ -3154,9 +3154,9 @@ sub check_cherry_pick {
|
||||
my $parents = shift;
|
||||
my @ranges = @_;
|
||||
my %commits = map { $_ => 1 }
|
||||
_rev_list("--no-merges", $tip, "--not", $base, @$parents);
|
||||
_rev_list("--no-merges", $tip, "--not", $base, @$parents, "--");
|
||||
for my $range ( @ranges ) {
|
||||
delete @commits{_rev_list($range)};
|
||||
delete @commits{_rev_list($range, "--")};
|
||||
}
|
||||
for my $commit (keys %commits) {
|
||||
if (has_no_changes($commit)) {
|
||||
|
Loading…
Reference in New Issue
Block a user