Make deploy resistant to non-continous Git history