summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2020-02-01 15:14:42 -0700
committerSean Whitton <spwhitton@spwhitton.name>2020-02-01 15:14:51 -0700
commitc1aabf33bd7f70298ea977b0e20dc262a92bde2b (patch)
treeec3b3a36d56e1eb2fca983d5b542abac0904094e /lib
parentf48595c3d891765cf4d20cf5a9a829c3ab295cb5 (diff)
downloadp5-Git-Annex-c1aabf33bd7f70298ea977b0e20dc262a92bde2b.tar.gz
_git_path does an implicit catfile
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'lib')
-rw-r--r--lib/Git/Annex.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Git/Annex.pm b/lib/Git/Annex.pm
index 4287126..c744d7b 100644
--- a/lib/Git/Annex.pm
+++ b/lib/Git/Annex.pm
@@ -106,7 +106,7 @@ has repo => (
has _unused_cache => (
is => "lazy",
- default => sub { shift->_git_path(catfile(qw(annex unused_info))) });
+ default => sub { shift->_git_path(qw(annex unused_info)) });
sub _store_unused_cache {
my $self = shift;
@@ -121,8 +121,8 @@ sub _clear_unused_cache {
}
sub _git_path {
- my ($self, $input) = @_;
- my ($path) = $self->git->rev_parse({ git_path => 1 }, $input);
+ my ($self, @input) = @_;
+ my ($path) = $self->git->rev_parse({ git_path => 1 }, catfile @input);
rel2abs($path, $self->toplevel);
}