Skip to content

Commit 7d7f6d3

Browse files
committed
tests: clone::local: compile UNC functions for Windows only
1 parent 8d93a11 commit 7d7f6d3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/clone/local.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ static int file_url(git_buf *buf, const char *host, const char *path)
1616
return git_buf_printf(buf, "file://%s/%s", host, path);
1717
}
1818

19+
#ifdef GIT_WIN32
1920
static int git_style_unc_path(git_buf *buf, const char *host, const char *path)
2021
{
2122
git_buf_clear(buf);
@@ -49,6 +50,7 @@ static int unc_path(git_buf *buf, const char *host, const char *path)
4950

5051
return 0;
5152
}
53+
#endif
5254

5355
void test_clone_local__should_clone_local(void)
5456
{

0 commit comments

Comments
 (0)