From 13e477b4d3e32b84b80b57e7a0a6bb2b5b6f6fea Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Sat, 1 Feb 2020 10:54:17 -0700 Subject: tweak Signed-off-by: Sean Whitton --- lib/Git/Annex.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Git/Annex.pm b/lib/Git/Annex.pm index bb24b13..1cd26f4 100644 --- a/lib/Git/Annex.pm +++ b/lib/Git/Annex.pm @@ -78,7 +78,7 @@ Returns the toplevel of the repository. =cut -has "toplevel", is => 'ro'; +has toplevel => (is => 'ro'); =head2 git @@ -86,7 +86,7 @@ Returns an instance of L initialised in the repository. =cut -has "git" => ( +has git => ( is => 'lazy', default => sub { Git::Wrapper->new(shift->toplevel) }); @@ -96,7 +96,7 @@ Returns an instance of L initialised in the repository. =cut -has "repo" => ( +has repo => ( is => 'lazy', # we don't know (here) whether our repo is bare or not, so we # don't know whether to use the git_dir or work_tree arguments to -- cgit v1.2.3