Replace references to scope.pull.head.base to scope.head