diff options
author | Philip Kelley <phkelley@hotmail.com> | 2014-05-17 16:58:09 -0400 |
---|---|---|
committer | Philip Kelley <phkelley@hotmail.com> | 2014-05-17 16:58:09 -0400 |
commit | d7a294633dc6420d2411500bd40c7dfd2aa76d37 (patch) | |
tree | 95ffd5b5bbe0b9e1ef82976243ae71b10dca111e | |
parent | 4c9ffdff76d6d0c4dd65793148d38b35b7703d0d (diff) | |
download | libgit2-d7a294633dc6420d2411500bd40c7dfd2aa76d37.tar.gz |
Fix a bug in the pack::packbuilder suite
-rw-r--r-- | tests/pack/packbuilder.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/pack/packbuilder.c b/tests/pack/packbuilder.c index 53db81828..1059424ed 100644 --- a/tests/pack/packbuilder.c +++ b/tests/pack/packbuilder.c @@ -17,6 +17,7 @@ static git_transfer_progress _stats; void test_pack_packbuilder__initialize(void) { _repo = cl_git_sandbox_init("testrepo.git"); + cl_git_pass(p_chdir("testrepo.git")); cl_git_pass(git_revwalk_new(&_revwalker, _repo)); cl_git_pass(git_packbuilder_new(&_packbuilder, _repo)); cl_git_pass(git_vector_init(&_commits, 0, NULL)); @@ -46,6 +47,7 @@ void test_pack_packbuilder__cleanup(void) git_indexer_free(_indexer); _indexer = NULL; + p_chdir(".."); cl_git_sandbox_cleanup(); _repo = NULL; } |