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

  end

  ## Helpers

  defp location("git://github.com/" <> rest) do
    if System.get_env("MIX_GIT_FORCE_HTTPS") == "1" do
      "https://github.com/" <> rest
    else
      "git://github.com/" <> rest
    end
  end

  defp location(other), do: other

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

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

      command = "git fetch --force --progress"
