summary refs log tree commit diff
path: root/lib/ballet/Git.pm
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2011-03-13 15:10:07 +0100
committerfranck cuny <franck@lumberjaph.net>2011-03-13 15:10:07 +0100
commit70f2292693f88dbb7352927c1d6b6ae762e54faf (patch)
treeef6292196d52eabf0c915c8d595c56622d2ca337 /lib/ballet/Git.pm
parentfind and render a page for version 'master' (diff)
downloadballet-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.pm5
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;