File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -616,11 +616,8 @@ void test_worktree_worktree__validate_invalid_worktreedir(void)
616616 git_worktree * wt ;
617617
618618 cl_git_pass (git_worktree_lookup (& wt , fixture .repo , "testrepo-worktree" ));
619- git__free (wt -> worktree_path );
620- wt -> worktree_path = "/path/to/invalid/worktreedir" ;
621-
619+ p_rename ("testrepo-worktree" , "testrepo-worktree-tmp" );
622620 cl_git_fail (git_worktree_validate (wt ));
623621
624- wt -> worktree_path = NULL ;
625622 git_worktree_free (wt );
626623}
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ void cleanup_fixture_worktree(worktree_fixture *fixture)
1919 cl_fixture_cleanup (fixture -> reponame );
2020 if (fixture -> worktreename )
2121 cl_fixture_cleanup (fixture -> worktreename );
22+ p_rename ("testrepo-worktree-tmp" , "testrepo-worktree" );
2223}
2324
2425void setup_fixture_worktree (worktree_fixture * fixture )
You can’t perform that action at this time.
0 commit comments