Learn more about cloning repositories
You have read-only access
split this into 2 functions so its clear if this function allocates or not