Add git log support
Add a double check for repository destroy