Commit 3e500fc8 by Carson Howard Committed by Carson Howard

test: submodule: add: join path without slashes

parent 0a74f391
......@@ -140,8 +140,8 @@ void test_submodule_add__path_exists_in_index(void)
/* In this repo, HEAD (master) has no remote tracking branc h*/
g_repo = cl_git_sandbox_init("testrepo");
git_buf_joinpath(&dirname, git_repository_workdir(g_repo), "/TestGitRepository");
git_buf_joinpath(&filename, dirname.ptr, "/test.txt");
git_buf_joinpath(&dirname, git_repository_workdir(g_repo), "TestGitRepository");
git_buf_joinpath(&filename, dirname.ptr, "test.txt");
p_mkdir(dirname.ptr, 0700);
fd = fopen(filename.ptr, "w");
......@@ -174,7 +174,7 @@ void test_submodule_add__file_exists_in_index(void)
/* In this repo, HEAD (master) has no remote tracking branc h*/
g_repo = cl_git_sandbox_init("testrepo");
git_buf_joinpath(&name, git_repository_workdir(g_repo), "/TestGitRepository");
git_buf_joinpath(&name, git_repository_workdir(g_repo), "TestGitRepository");
fd = fopen(name.ptr, "w");
fclose(fd);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment