/// <returns> /// true if the /// <code>Constants#HEAD</code> /// reference needs to be linked /// to the new destination name. /// </returns> /// <exception cref="System.IO.IOException"> /// the current value of /// <code>HEAD</code> /// cannot be read. /// </exception> protected internal virtual bool NeedToUpdateHEAD() { Ref head = source.GetRefDatabase().GetRef(Constants.HEAD); if (head.IsSymbolic()) { head = head.GetTarget(); return(head.GetName().Equals(source.GetName())); } return(false); }