IsDetachedHead method fixed
Problem with "Push all tags" fixed. Closes #1889