Using packedrefs class in gitrepository