handle get repo head commit request for http-server