Skip to content

Commit 1fa8014

Browse files
punkymaniacethomson
authored andcommitted
Update test for git_str usage instead of git_buf
See commit f0e693b
1 parent 8b0ffdc commit 1fa8014

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/worktree/worktree.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,19 +297,19 @@ void test_worktree_worktree__add_no_checkout(void)
297297
git_worktree *wt;
298298
git_repository *wtrepo;
299299
git_index *index;
300-
git_buf path = GIT_BUF_INIT;
300+
git_str path = GIT_STR_INIT;
301301
git_worktree_add_options opts = GIT_WORKTREE_ADD_OPTIONS_INIT;
302302

303303
opts.checkout_opts.checkout_strategy = GIT_CHECKOUT_NONE;
304304

305-
cl_git_pass(git_buf_joinpath(&path, fixture.repo->workdir, "../worktree-no-checkout"));
305+
cl_git_pass(git_str_joinpath(&path, fixture.repo->workdir, "../worktree-no-checkout"));
306306
cl_git_pass(git_worktree_add(&wt, fixture.repo, "worktree-no-checkout", path.ptr, &opts));
307307

308308
cl_git_pass(git_repository_open(&wtrepo, path.ptr));
309309
cl_git_pass(git_repository_index(&index, wtrepo));
310310
cl_assert_equal_i(git_index_entrycount(index), 0);
311311

312-
git_buf_dispose(&path);
312+
git_str_dispose(&path);
313313
git_worktree_free(wt);
314314
git_repository_free(wtrepo);
315315
}

0 commit comments

Comments
 (0)