         (let [;clone-results {:directory (new java.io.File "/tmp/emender-service-1460560704093/")}]
               clone-results (git-utils/clone-remote-repository repo-url branch)]
              (if (= (:status clone-results) :ok)
-                 (run-emend job-name path-to-emend path-to-tests tests
+                 (run-emend job-name repo-url branch
+                            path-to-emend path-to-tests tests
                             (.getAbsolutePath (:directory clone-results))
                             delete-workdirs?)
                  (do

    (map #(str path-to-tests "/" % ".lua") tests))

(defn process-results
    [job-name results]
        (db-interface/log-job-results job-name results)
        (println "job name" job-name)
        (println "results:" results)
        ;(results/add-new-results job-name results)

                (if delete-workdirs?
                    (file-utils/remove-temporary-directory book-directory))
                (if results
                    (process-results job-name repo-url branch results)
                    (send-response {:status :reading-job-result-failed})))
            (catch Exception e
                (if delete-workdirs?
                    (file-utils/remove-temporary-directory book-directory))
