diff options
author | franck cuny <franck@lumberjaph.net> | 2011-03-13 15:10:07 +0100 |
---|---|---|
committer | franck cuny <franck@lumberjaph.net> | 2011-03-13 15:10:07 +0100 |
commit | 70f2292693f88dbb7352927c1d6b6ae762e54faf (patch) | |
tree | ef6292196d52eabf0c915c8d595c56622d2ca337 /lib/ballet/Git.pm | |
parent | find and render a page for version 'master' (diff) | |
download | ballet-70f2292693f88dbb7352927c1d6b6ae762e54faf.tar.gz |
path to the repo, not the git dir; update page
Signed-off-by: franck cuny <franck@lumberjaph.net>
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; |