From 193a7d8b16658e768514d43b1161c8d2d02d6216 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 20 Jul 2019 11:13:14 +0100 Subject: Update to use self for testing --- src/repo.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/repo.cpp') diff --git a/src/repo.cpp b/src/repo.cpp index 299f2ce..4c2a13f 100644 --- a/src/repo.cpp +++ b/src/repo.cpp @@ -4,9 +4,12 @@ #include "blob.h" #include "dir.h" +// Testing +#include + GitFS::Repo::Repo() : - repo(Git::RepositoryOpenBare("/usr/portage/.git")), - commit(Git::CommitLookup(repo, Git::OidParse("97a435f30472eb941f96234d274b3aeb492e2793"))), + repo(Git::RepositoryOpenBare(rootDir)), + commit(Git::CommitLookup(repo, Git::OidParse("9197cb3c6e58e6f24deb0af326f695aac87bc36d"))), tree(Git::TreeLookup(repo, *git_commit_tree_id(commit.get()))) { } -- cgit v1.2.3