you can git fetch any cl  because cl s are never deleted in gerrit if you mock out return value of  getprojectmanifestbranch to return a commit object  then you will get result of  git log  commit fetch head  