Skip to content

Commit 86536c7

Browse files
committed
win32: remediation not cleanup
The `remediation` function is run in the retry loop in order to attempt to fix any problems that the prior run encountered. There is nothing "cleaned up". Clarify the name.
1 parent 48f09c6 commit 86536c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/win32/posix_w32.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,11 @@ GIT_INLINE(bool) last_error_retryable(void)
160160
os_error == ERROR_ACCESS_DENIED);
161161
}
162162

163-
#define do_with_retries(fn, cleanup) \
163+
#define do_with_retries(fn, remediation) \
164164
do { \
165165
int __tries, __ret; \
166166
for (__tries = 0; __tries < git_win32__retries; __tries++) { \
167-
if (__tries && (__ret = (cleanup)) != 0) \
167+
if (__tries && (__ret = (remediation)) != 0) \
168168
return __ret; \
169169
if ((__ret = (fn)) != GIT_RETRY) \
170170
return __ret; \

0 commit comments

Comments
 (0)