public ITask UpdateRepositoryInfo() { var task = new ActionTask(token, () => { ConfigBranch?branch; ConfigRemote?remote; GetCurrentBranchAndRemote(out branch, out remote); var currentHead = GitClient.GetHead().RunSynchronously(); CurrentBranchUpdated?.Invoke(branch, remote, currentHead); }) { Message = "Updating repository info..." }; return(HookupHandlers(task, false)); }