Are concurrent git pushes always safe if the second push only has fast-forwards from the first push?
I want to automatically push commits in the post-receive hook from a central repo on our LAN to another central repo in the cloud. The LAN repo is created using git clone --mirror git@cloud:/path/to/repo or equivalent commands. Because the files being committed will be large relative to our upstream bandwidth, it's entirely possible something like this could happen: Alice initiates a push to the LAN repo. Bill pulls from the LAN repo while the post-receive hook is running. The LAN repo is in the middle of pushing to the cloud repo. This also means Bill's local repo contains the commits Alice