Commit fc69476a authored by Steve McIntyre's avatar Steve McIntyre

Fix up chained new() calls

Shift out the first arg so we don't pollute the namespace of the
module underneath us.
parent 92a49914
......@@ -44,12 +44,14 @@ sub new
if ( -d 'CVS' )
{
require Local::VCS_CVS;
shift;
return Local::VCS_CVS->new(@_);
}
# fall back to git
else
{
require Local::VCS_git;
shift;
return Local::VCS_git->new(@_);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment