extract git handler from build_server