Patch Set 1:

Indeed 'baseCommit' can be null, but this can only happen when remote commit has no parents. AFAIK in git there is only one commit object that has no parents, it is a initial commit. But yes, we should check here for null.