Skip to content

Fix unable to delete reflog of current branch if deleting reflog of HEAD first

Yue Lin Ho requested to merge fix_reflog into master

Step:

  1. Delete some reflog of HEAD
    image
  2. Select current branch
    image
  3. Delete some reflog of current branch
    image
  4. Show error message:
    The current view seems to be out of date. Please refresh, e.g. by pressing F5 and recheck the selection.
    image

Root cause:

The CRefLogDlg::m_CurrentBranch is refs/heads/master while the CRefLogDlg::m_RefList::m_CurrentBranch is still HEAD. image

Merge request reports