Isn't this still racy when two requests come at about the same time?
Perhaps you can avoid it by using a lockfile?
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html