   def update(opts) do
     File.cd! opts[:dest], fn ->
       # Ensures origin is set the lock repo
-      location = location(opts[:git])
+      location = opts[:git]
       update_origin(location)
 
       command = "git fetch --force --progress"


  def checkout(opts) do
    path     = opts[:dest]
    location = location(opts[:git])
    command  = ~s(git clone --no-checkout --progress "#{location}" "#{path}")

    run_cmd_or_raise(command)

  end

  ## Helpers

  defp do_checkout(opts) do
    ref = get_lock_rev(opts[:lock]) || get_opts_rev(opts)
