capistrano_rsync_with_remote_cache
capistrano_rsync_with_remote_cache copied to clipboard
retry checkout if it fails
Often the deploy fails because the exact commit in the new deployed branch is not present as the child of the branch in local cache.
executing locally: cd /path/to/proj/.rsync_cache && git fetch -q origin && git fetch --tags -q origin && git reset -q --hard 5875782837e6ba2892903811c2c183fcd6749442 && git clean -q -d -x -f
fatal: Could not parse object '5875782837e6ba2892903811c2c183fcd6749442'.
Currently it continues like everything's fine but it needs to either stop or retry after deleting the local cache.