refdb: remove a check-delete race when removing a loose ref
It does not help us to check whether the file exists before trying to unlink it since it might be gone by the time unlink is called. Instead try to remove it and handle the resulting error if it did not exist.
Showing
Please
register
or
sign in
to comment