Skip to content

Commit c8fe4da

Browse files
author
Edward Thomson
authored
Apply suggestions from code review
1 parent 303b4c6 commit c8fe4da

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

src/worktree.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ int git_worktree_validate(const git_worktree *wt)
262262

263263
if (!git_path_exists(wt->worktree_path)) {
264264
git_error_set(GIT_ERROR_WORKTREE,
265-
"worktree directory ('%s') does not exist ",
265+
"worktree directory '%s' does not exist",
266266
wt->worktree_path);
267267
return GIT_ERROR;
268268
}

tests/worktree/worktree.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,7 @@ void test_worktree_worktree__validate_invalid_worktreedir(void)
618618
cl_git_pass(git_worktree_lookup(&wt, fixture.repo, "testrepo-worktree"));
619619
p_rename("testrepo-worktree", "testrepo-worktree-tmp");
620620
cl_git_fail(git_worktree_validate(wt));
621+
p_rename("testrepo-worktree-tmp", "testrepo-worktree");
621622

622623
git_worktree_free(wt);
623624
}

tests/worktree/worktree_helpers.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ 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");
2322
}
2423

2524
void setup_fixture_worktree(worktree_fixture *fixture)

0 commit comments

Comments
 (0)