Using packedrefs class to get branch sha1