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