Fix unable to delete reflog of current branch if deleting reflog of HEAD first
Step:
- Delete some reflog of HEAD
- Select current branch
- Delete some reflog of current branch
- Show error message:
The current view seems to be out of date. Please refresh, e.g. by pressing F5 and recheck the selection.
Root cause:
The CRefLogDlg::m_CurrentBranch
is refs/heads/master
while the CRefLogDlg::m_RefList::m_CurrentBranch
is still HEAD
.