Martin Langhoff <martin.langh...@gmail.com> writes:

> On Wed, Jan 15, 2014 at 4:12 AM, Jeff King <p...@peff.net> wrote:
>> We see these occasionally at GitHub, too. I haven't yet figured out a
>> definite cause, though whatever it is, it's relatively rare.
>
> Do you have a cleanup script to safely get rid of stale .keep and
> .lock files? I wonder what other stale bits merit a cleanup...

As long as we can reliably determine that it is safe to do so
without risking races, automatically cleaning .lock files is a good
thing to do.

Cleaning .keep files needs the same care and a bit more, though.
You of course have to be sure that no other concurrent process is in
the middle of doing something, but you also need to be sure that the
".keep" file is not a marker created by the end user to say "keep
this pack, do not subject its contents to repacking" after a careful
repacking of the stable part of the history.

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to