diff options
Diffstat (limited to 'lib/ballet/Git.pm')
-rw-r--r-- | lib/ballet/Git.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/ballet/Git.pm b/lib/ballet/Git.pm index 6ade622..3e2fc6a 100644 --- a/lib/ballet/Git.pm +++ b/lib/ballet/Git.pm @@ -1,6 +1,7 @@ package ballet::Git; use Mouse; +use File::Spec; use Git::Repository; with 'ballet::Page'; @@ -17,8 +18,10 @@ has git_repo => ( lazy => 1, default => sub { my $self = shift; - Git::Repository->new( git_dir => $self->wiki_path ),; + Git::Repository->new( + git_dir => File::Spec->catdir( $self->wiki_path, '.git' ) ),; }, ); + 1; |