summaryrefslogtreecommitdiff
path: root/tests/submodule
diff options
context:
space:
mode:
authorCarson Howard <carsonh@axosoft.com>2018-03-28 06:48:55 -0700
committerCarson Howard <carsonh@axosoft.com>2018-03-28 06:48:55 -0700
commit69a282da2713ddf524112910e27f8e874bcabd4d (patch)
treefb5457e24b78f46430d536f572b1593368c5f3ef /tests/submodule
parentc07abd6509cc1d22bcddd377c0e49de4e7c7ced9 (diff)
downloadlibgit2-69a282da2713ddf524112910e27f8e874bcabd4d.tar.gz
submodule: add more robust error handling when a submodule path is found on add
Diffstat (limited to 'tests/submodule')
-rw-r--r--tests/submodule/add.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/submodule/add.c b/tests/submodule/add.c
index 383b5e57f..ebb9d6292 100644
--- a/tests/submodule/add.c
+++ b/tests/submodule/add.c
@@ -156,7 +156,7 @@ void test_submodule_add__path_exists_in_index(void)
cl_git_pass(git_buf_joinpath(&filename, "subdirectory", "test.txt"));
- cl_git_pass(git_repository_index(&index, g_repo));
+ cl_git_pass(git_repository_index__weakptr(&index, g_repo));
test_add_entry(index, valid_blob_id, filename.ptr, GIT_FILEMODE_BLOB);
@@ -174,7 +174,7 @@ void test_submodule_add__file_exists_in_index(void)
g_repo = cl_git_sandbox_init("testrepo");
- cl_git_pass(git_repository_index(&index, g_repo));
+ cl_git_pass(git_repository_index__weakptr(&index, g_repo));
test_add_entry(index, valid_blob_id, "subdirectory", GIT_FILEMODE_BLOB);