updated git api code to include a user agent