You may check against count of branches in reference bag. All branches should have initial commit as parent