 
   defp sparse_check(version) do
     unless {1, 7, 4} <= version do
-      version = version |> Tuple.to_list |> Enum.join(".")
-      Mix.raise "Git >= 1.7.4 is required to use sparse checkout. " <>
-                "You are running version #{version}"
+      version = version |> Tuple.to_list() |> Enum.join(".")
+
+      Mix.raise(
+        "Git >= 1.7.4 is required to use sparse checkout. " <>
+          "You are running version #{version}"
+      )
     end
   end
 

  end

  defp get_rev_info do
    # Those commands can fail and we don't want to raise.
    with {origin, 0} <-
           System.cmd("git", ["--git-dir=.git", "config", "remote.origin.url"]),
         {rev, 0} <-
           System.cmd("git", ["--git-dir=.git", "rev-parse", "--verify", "--quiet", "HEAD"]) do
      %{origin: String.trim(origin), rev: String.trim(rev)}
    else
      _ -> %{origin: nil, rev: nil}

  defp git!(args, into \\ %Mix.Shell{}) do
    case System.cmd("git", args, into: into, stderr_to_stdout: true) do
      {response, 0} -> response
      {_, _} -> Mix.raise("Command \"git #{Enum.join(args, " ")}\" failed")
    end
  end

