Added ref listing. Added bare repo support