fix deploy for branch when source already exists