Commit 8a8820d89fce2831e4a3efffcd9b75cbc479152a

Jameson Miller 2012-12-13T17:58:12

Add test to clone with absolute path

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/tests-clar/clone/nonetwork.c b/tests-clar/clone/nonetwork.c
index fbebe54..8432708 100644
--- a/tests-clar/clone/nonetwork.c
+++ b/tests-clar/clone/nonetwork.c
@@ -39,6 +39,14 @@ void test_clone_nonetwork__local(void)
 	cl_git_pass(git_clone(&g_repo, src, "./local", NULL, NULL, NULL));
 }
 
+void test_clone_nonetwork__local_absolute_path(void)
+{
+	const char *src = cl_fixture("testrepo.git");
+	cl_set_cleanup(&cleanup_repository, "./local");
+
+	cl_git_pass(git_clone(&g_repo, src, "./local", NULL, NULL, NULL));
+}
+
 void test_clone_nonetwork__local_bare(void)
 {
 	const char *src = cl_git_fixture_url("testrepo.git");