summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2014-05-28 10:07:23 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2014-05-28 15:40:22 +0200
commitc1dbfcbb4a5ca92ae90f1bdb7004edb2eb86284c (patch)
treedbfab62df7828e493829ca99af855a507c39450f /tests
parent121b26738e6a5e6eadeb2a2bc666956ae21cb92b (diff)
downloadlibgit2-c1dbfcbb4a5ca92ae90f1bdb7004edb2eb86284c.tar.gz
clone: add flag not to link
Diffstat (limited to 'tests')
-rw-r--r--tests/clone/local.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/clone/local.c b/tests/clone/local.c
index 478bbb673..7b273b23a 100644
--- a/tests/clone/local.c
+++ b/tests/clone/local.c
@@ -19,11 +19,13 @@ void test_clone_local__should_clone_local(void)
cl_git_pass(git_buf_printf(&buf, "file://%s", cl_fixture("testrepo.git")));
cl_assert_equal_i(false, git_clone__should_clone_local(buf.ptr, GIT_CLONE_LOCAL_AUTO));
cl_assert_equal_i(true, git_clone__should_clone_local(buf.ptr, GIT_CLONE_LOCAL));
+ cl_assert_equal_i(true, git_clone__should_clone_local(buf.ptr, GIT_CLONE_LOCAL_NO_LINKS));
cl_assert_equal_i(false, git_clone__should_clone_local(buf.ptr, GIT_CLONE_NO_LOCAL));
git_buf_free(&buf);
path = cl_fixture("testrepo.git");
cl_assert_equal_i(true, git_clone__should_clone_local(path, GIT_CLONE_LOCAL_AUTO));
cl_assert_equal_i(true, git_clone__should_clone_local(path, GIT_CLONE_LOCAL));
+ cl_assert_equal_i(true, git_clone__should_clone_local(path, GIT_CLONE_LOCAL_NO_LINKS));
cl_assert_equal_i(false, git_clone__should_clone_local(path, GIT_CLONE_NO_LOCAL));
}