fn update_repo(repo: &str, target_dir: &Path) -> Result<(), Error>
Update a local git repository to the newest state. Resets any local changes in case in each repository beforehand to prevent any conflicts.