run_git(dir,name,f'remote set-url origin "{url}"',None,f"Failed to set {name}'s origin URL",live=False)
run_git(dir,name,'fetch',f"Fetching updates for {name}...",f"Couldn't fetch {name}",autofix=False)
run_git(dir,name,f'checkout {commithash}',f"Checking out commit for {name} with hash: {commithash}...",f"Couldn't checkout commit {commithash} for {name}",live=True)