summaryrefslogtreecommitdiff
path: root/lib/Git/Annex.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Git/Annex.pm')
-rw-r--r--lib/Git/Annex.pm4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Git/Annex.pm b/lib/Git/Annex.pm
index 209c55f..ef697ea 100644
--- a/lib/Git/Annex.pm
+++ b/lib/Git/Annex.pm
@@ -301,9 +301,7 @@ has annex => (
default => sub { bless \$_[0] => "Git::Annex::Wrapper" });
around BUILDARGS => sub {
- my (undef, undef, @args) = @_;
-
- my $toplevel = $args[0] ? rel2abs($args[0]) : getcwd;
+ my $toplevel = $_[2] ? rel2abs($_[2]) : getcwd;
# if we're in a working tree, rise up to the root of the working
# tree -- for flexibility, don't require that we're actually in a