$scope.startDeploy = function (job) {
    $('.tooltip').hide();
    var branchToUse = determineTargetBranch(job);
    socket.emit('deploy', job.project.name, branchToUse);
  };