Properly convert git branchs + use common private method to do it
Properly deserialize request response