diff options
author | Carson Howard <carsonh@axosoft.com> | 2017-10-16 19:55:45 -0700 |
---|---|---|
committer | Carson Howard <tylerw+systemtest@axosoft.com> | 2018-03-27 07:29:04 -0700 |
commit | 3e500fc8d225b855558ceadf5875502fe27e2015 (patch) | |
tree | 3bf91dfdf3b0265ee7e492c665c944540ff03f48 /tests/submodule | |
parent | 0a74f391be5f511a944cd7170946669fe27978dd (diff) | |
download | libgit2-3e500fc8d225b855558ceadf5875502fe27e2015.tar.gz |
test: submodule: add: join path without slashes
Diffstat (limited to 'tests/submodule')
-rw-r--r-- | tests/submodule/add.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/submodule/add.c b/tests/submodule/add.c index dec36a52b..76cdda85e 100644 --- a/tests/submodule/add.c +++ b/tests/submodule/add.c @@ -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); |