This is because currently a repo model instance represents a repo within a project, and it is deleted upon unlinking. This means all associated info (e.g. branches) is deleted. Branch info is only currently collected by github hooks and not by cloning and analysing repos, meaning that it is lost unrecoverably.
This requires some discussion.