Skip to content

Commit 48f09c6

Browse files
committed
win32: only set git_win32__retries where it exists
1 parent 89d403c commit 48f09c6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/threads/diff.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,19 @@ static int _retries;
2525

2626
void test_threads_diff__initialize(void)
2727
{
28+
#ifdef GIT_WIN32
2829
_retries = git_win32__retries;
2930
git_win32__retries = 1;
31+
#endif
3032
}
3133

3234
void test_threads_diff__cleanup(void)
3335
{
3436
cl_git_sandbox_cleanup();
37+
38+
#ifdef GIT_WIN32
3539
git_win32__retries = _retries;
40+
#endif
3641
}
3742

3843
static void setup_trees(void)

0 commit comments

Comments
 (0)