summaryrefslogtreecommitdiff
path: root/tests/refs/revparse.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@github.com>2021-10-31 09:45:46 -0400
committerEdward Thomson <ethomson@edwardthomson.com>2021-11-09 15:17:17 +0000
commit95117d4744cf5a66f2bcde7991a925e9852d9b1e (patch)
tree070b80735f355dbb91528da9b98432ea747ae2f3 /tests/refs/revparse.c
parent44ec8b5cdf960cfeb66284a3cd5bdd8c14aefedf (diff)
downloadlibgit2-95117d4744cf5a66f2bcde7991a925e9852d9b1e.tar.gz
path: separate git-specific path functions from util
Introduce `git_fs_path`, which operates on generic filesystem paths. `git_path` will be kept for only git-specific path functionality (for example, checking for `.git` in a path).
Diffstat (limited to 'tests/refs/revparse.c')
-rw-r--r--tests/refs/revparse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/refs/revparse.c b/tests/refs/revparse.c
index 9c960702a..d02249754 100644
--- a/tests/refs/revparse.c
+++ b/tests/refs/revparse.c
@@ -329,13 +329,13 @@ static void create_fake_stash_reference_and_reflog(git_repository *repo)
git_str_joinpath(&log_path, git_repository_path(repo), "logs/refs/fakestash");
- cl_assert_equal_i(false, git_path_isfile(git_str_cstr(&log_path)));
+ cl_assert_equal_i(false, git_fs_path_isfile(git_str_cstr(&log_path)));
cl_git_pass(git_reference_lookup(&master, repo, "refs/heads/master"));
cl_git_pass(git_reference_rename(&new_master, master, "refs/fakestash", 0, NULL));
git_reference_free(master);
- cl_assert_equal_i(true, git_path_isfile(git_str_cstr(&log_path)));
+ cl_assert_equal_i(true, git_fs_path_isfile(git_str_cstr(&log_path)));
git_str_dispose(&log_path);
git_reference_free(new_master);