Commit 0d30e7bb3df520bb4f36d54b339baf231864b05d

Laurence McGlashan 2021-09-14T13:07:33

Apply suggestions from code review Co-authored-by: Edward Thomson <ethomson@github.com>

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/tests/win32/longpath.c b/tests/win32/longpath.c
index 294faea..f300544 100644
--- a/tests/win32/longpath.c
+++ b/tests/win32/longpath.c
@@ -64,6 +64,7 @@ void test_win32_longpath__workdir_path_validated(void)
 #endif
 }
 
+#ifdef GIT_WIN32
 static void assert_longpath_status_and_add(git_repository* repo) {
 	git_index *index;
 	git_buf out = GIT_BUF_INIT;
@@ -85,6 +86,7 @@ static void assert_longpath_status_and_add(git_repository* repo) {
 	git_index_free(index);
 	git_buf_dispose(&out);
 }
+#endif
 
 void test_win32_longpath__status_and_add(void)
 {