rename_tmp_log(): limit the number of remote_empty_directories() attempts
commitf1e9e9a4dbe2cfb39dcb14ee4f34628ef46d7b15
authorMichael Haggerty <mhagger@alum.mit.edu>
Sat, 18 Jan 2014 22:49:00 +0000 (18 23:49 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 21 Jan 2014 21:47:24 +0000 (21 13:47 -0800)
treed283e1b1d0b55483f338eeaf32e40e5a99bab491
parentae4a283e3b4cdc99a548d215739539c3a690f290
rename_tmp_log(): limit the number of remote_empty_directories() attempts

This doesn't seem to be a likely error, but we've got the counter
anyway, so we might as well use it for an added bit of safety.

Please note that the first call to rename() is optimistic, and it is
normal for it to fail if there is a directory in the way.  So bump the
total number of allowed attempts to 4, to be sure that we can still
have at least 3 retries in the case of a race.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c