diff options
author | punkymaniac <punkymaniac@protonmail.ch> | 2021-11-22 12:07:59 +0100 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2021-12-23 14:21:49 -0600 |
commit | 1fa8014a97d34456a2750ddb75f1de7915cc0951 (patch) | |
tree | a85ade1b89147e33230c3d20415d8ac0ffef373f /tests/worktree | |
parent | 8b0ffdcb7b115e8f578303d6d5acbf923cd5c811 (diff) | |
download | libgit2-1fa8014a97d34456a2750ddb75f1de7915cc0951.tar.gz |
Update test for `git_str` usage instead of `git_buf`
See commit f0e693b18afbe1de37d7da5b5a8967b6c87d8e53
Diffstat (limited to 'tests/worktree')
-rw-r--r-- | tests/worktree/worktree.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/worktree/worktree.c b/tests/worktree/worktree.c index c57592079..d44e0a4b6 100644 --- a/tests/worktree/worktree.c +++ b/tests/worktree/worktree.c @@ -297,19 +297,19 @@ void test_worktree_worktree__add_no_checkout(void) git_worktree *wt; git_repository *wtrepo; git_index *index; - git_buf path = GIT_BUF_INIT; + git_str path = GIT_STR_INIT; git_worktree_add_options opts = GIT_WORKTREE_ADD_OPTIONS_INIT; opts.checkout_opts.checkout_strategy = GIT_CHECKOUT_NONE; - cl_git_pass(git_buf_joinpath(&path, fixture.repo->workdir, "../worktree-no-checkout")); + cl_git_pass(git_str_joinpath(&path, fixture.repo->workdir, "../worktree-no-checkout")); cl_git_pass(git_worktree_add(&wt, fixture.repo, "worktree-no-checkout", path.ptr, &opts)); cl_git_pass(git_repository_open(&wtrepo, path.ptr)); cl_git_pass(git_repository_index(&index, wtrepo)); cl_assert_equal_i(git_index_entrycount(index), 0); - git_buf_dispose(&path); + git_str_dispose(&path); git_worktree_free(wt); git_repository_free(wtrepo); } |