anchor.diff:      IsDir = filelib:is_dir(Path),
       clone_if_needed(IsDir, GitRepo, Path),
   
  -    CommitIsh = proplists:get_value(commit_ish, Opts, "master"),
  -    Ref = proplists:get_value(ref, Opts, "Unknown"),
  -    {ok, BuildID} = builderl_build_registry:create(Name, Ref, CommitIsh),
  -    BR=#buildrecord{id=BuildID,
  -                    project=Name,
  -                    committish=CommitIsh,
  -                    ref=Ref},
  -
  -    lager:debug("Commit-ish ~p", [CommitIsh]),
       checkout_ref(Path, CommitIsh),
       build_project(Path, BuilderlFile, BR),
   
  
positive.code: 
  -record(buildrecord, {id=undefined,
                        project=undefined,
                        stage_count=0,
                        committish=undefined,
                        ref=undefined,
  
negative.code:     BinProjects.
  
  build(Name, GitRepo, Opts) ->
      Ref = proplists:get_value(ref, Opts, "Unknown"),
      CommitIsh = proplists:get_value(commit_ish, Opts, "master"),
  
      {ok, BuildID} = builderl_build_registry:create(Name, Ref, CommitIsh),
      BR=#buildrecord{id=BuildID,
                      project=Name,
                      repo=GitRepo,
                      committish=CommitIsh,
                      ref=Ref},
      erlang:spawn(builderl, build_proc, [BR]),
      {ok, BuildID}.
  
  build_proc(BR=#buildrecord{committish=CommitIsh, repo=GitRepo}) ->
      lager:debug("Commit-ish ~p", [CommitIsh]),
  
      Time = erlang:monotonic_time(seconds),
      BuildDir = application:get_env(builderl, builds_directory, "/tmp"),
      Path = BuildDir ++ "/" ++ lists:flatten(io_lib:format("build~p",[Time])),
  