commit b18d25dfcd29e2fc8955510f7aad77297f0a61c7 from: Stefan Sperling date: Sun Mar 11 10:52:15 2018 UTC rename worktree test helper function commit - 8eac252b90e100faf4066b589250cfa50dab2fbd commit + b18d25dfcd29e2fc8955510f7aad77297f0a61c7 blob - 049c003bda38f5fb97f02544ad16b126d98ba8c8 blob + bb8301d05f1dc748b1d471a60522067e29e47e7d --- regress/worktree/worktree_test.c +++ regress/worktree/worktree_test.c @@ -78,7 +78,7 @@ remove_meta_file(const char *worktree_path, const char } static void -remove_workdir(const char *worktree_path) +remove_worktree(const char *worktree_path) { remove_meta_file(worktree_path, GOT_REF_HEAD); remove_meta_file(worktree_path, GOT_WORKTREE_FILE_INDEX); @@ -145,7 +145,7 @@ worktree_init(const char *repo_path) if (!check_meta_file_exists(worktree_path, GOT_WORKTREE_FORMAT)) goto done; ok = 1; - remove_workdir(worktree_path); + remove_worktree(worktree_path); done: if (head_ref) got_ref_close(head_ref); @@ -254,7 +254,7 @@ done: got_repo_close(repo); free(gotpath); if (ok == 6) - remove_workdir(worktree_path); + remove_worktree(worktree_path); return (ok == 6); }