@@ -9,7 +9,7 @@ namespace GitHub.Unity
99 public interface IRepositoryManager : IDisposable
1010 {
1111 event Action < bool > IsBusyChanged ;
12- event Action < ConfigBranch ? , ConfigRemote ? > CurrentBranchUpdated ;
12+ event Action < ConfigBranch ? , ConfigRemote ? , string > CurrentBranchUpdated ;
1313 event Action < GitStatus > GitStatusUpdated ;
1414 event Action < List < GitLock > > GitLocksUpdated ;
1515 event Action < List < GitLogEntry > > GitLogUpdated ;
@@ -106,7 +106,7 @@ class RepositoryManager : IRepositoryManager
106106
107107 private bool isBusy ;
108108
109- public event Action < ConfigBranch ? , ConfigRemote ? > CurrentBranchUpdated ;
109+ public event Action < ConfigBranch ? , ConfigRemote ? , string > CurrentBranchUpdated ;
110110 public event Action < bool > IsBusyChanged ;
111111 public event Action < GitStatus > GitStatusUpdated ;
112112 public event Action < GitAheadBehindStatus > GitAheadBehindStatusUpdated ;
@@ -394,9 +394,10 @@ public ITask UpdateRepositoryInfo()
394394 ConfigBranch ? branch ;
395395 ConfigRemote ? remote ;
396396 GetCurrentBranchAndRemote ( out branch , out remote ) ;
397- CurrentBranchUpdated ? . Invoke ( branch , remote ) ;
397+ var currentHead = GitClient . GetHead ( ) . RunWithReturn ( true ) ;
398+ CurrentBranchUpdated ? . Invoke ( branch , remote , currentHead ) ;
398399 } )
399- { Message = "Updating repository info..." } ; ;
400+ { Message = "Updating repository info..." } ;
400401 return HookupHandlers ( task , false ) ;
401402 }
402403
0 commit comments