Improving common ancestor method

when the search for the common ancestor returns null, it does’t
download the files for that revision