diff options
author | Patrick Steinhardt <ps@pks.im> | 2017-03-15 15:04:24 +0100 |
---|---|---|
committer | Patrick Steinhardt <ps@pks.im> | 2017-03-15 17:16:47 +0100 |
commit | f3c30686701ed0593cdcbb50085fd2fa0e706cf7 (patch) | |
tree | 630f04845cc410f29fc3f51eab5b7bda8ac22241 | |
parent | fdb3e24ac4054ba27cefc8b2252cfe540fb3a201 (diff) | |
download | libgit2-f3c30686701ed0593cdcbb50085fd2fa0e706cf7.tar.gz |
tests: worktree: use joinpath instead of printf to join paths
-rw-r--r-- | tests/worktree/worktree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/worktree/worktree.c b/tests/worktree/worktree.c index f0c423599..86554c56a 100644 --- a/tests/worktree/worktree.c +++ b/tests/worktree/worktree.c @@ -115,7 +115,7 @@ void test_worktree_worktree__lookup(void) cl_git_pass(git_worktree_lookup(&wt, fixture.repo, "testrepo-worktree")); - git_buf_printf(&gitdir_path, "%s/worktrees/%s", fixture.repo->commondir, "testrepo-worktree"); + cl_git_pass(git_buf_joinpath(&gitdir_path, fixture.repo->commondir, "worktrees/testrepo-worktree/")); cl_assert_equal_s(wt->gitdir_path, gitdir_path.ptr); cl_assert_equal_s(wt->parent_path, fixture.repo->gitdir); |