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

        |> Keyword.delete(:github)
        |> Keyword.put(:git, "https://github.com/#{gh}.git")
        |> validate_git_options
      opts[:git] ->
        opts
        |> validate_git_options
      true ->
        nil
    end

    path = opts[:checkout]
    File.rm_rf!(path)
    File.mkdir_p!(path)

    File.cd!(path, fn ->
      git!(["init", "--quiet"])
      git!(["--git-dir=.git", "remote", "add", "origin", opts[:git]])
