diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-07-20 11:13:14 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-07-20 11:13:14 +0100 |
commit | 193a7d8b16658e768514d43b1161c8d2d02d6216 (patch) | |
tree | 321f229264c19506ff2f35e7430a15fed330f38d /src | |
parent | Add some test files (diff) | |
download | netfs-gitfs-193a7d8b16658e768514d43b1161c8d2d02d6216.tar.bz2 netfs-gitfs-193a7d8b16658e768514d43b1161c8d2d02d6216.tar.xz netfs-gitfs-193a7d8b16658e768514d43b1161c8d2d02d6216.zip |
Update to use self for testing
Diffstat (limited to 'src')
-rw-r--r-- | src/Jamfile.jam | 4 | ||||
-rw-r--r-- | src/repo.cpp | 7 |
2 files changed, 9 insertions, 2 deletions
diff --git a/src/Jamfile.jam b/src/Jamfile.jam index db6267c..4cf083d 100644 --- a/src/Jamfile.jam +++ b/src/Jamfile.jam @@ -1,3 +1,5 @@ +# Testing +path-constant gitdir : ../.git ; lib gitfs : [ glob *.cpp ] @@ -6,6 +8,8 @@ lib gitfs : <library>..//icetray <library>..//git2 <library>..//netfs-api +# Testing + <define>ROOT=\"$(gitdir)\" : : <library>..//netfs-api ; 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 <definedDirs.h> + 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()))) { } |