capistrano_rsync_with_remote_cache icon indicating copy to clipboard operation
capistrano_rsync_with_remote_cache copied to clipboard

retry checkout if it fails

Open ArsalanDotMe opened this issue 7 years ago • 0 comments

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.

ArsalanDotMe avatar Dec 09 '17 10:12 ArsalanDotMe