elixir/mix-test-nogit.patch
2014-01-11 04:49:51 -05:00

18 lines
673 B
Diff

diff --git a/lib/mix/lib/mix/scm/git.ex b/lib/mix/lib/mix/scm/git.ex
index f67086f..47881b5 100644
--- a/lib/mix/lib/mix/scm/git.ex
+++ b/lib/mix/lib/mix/scm/git.ex
@@ -143,9 +143,10 @@ defmodule Mix.SCM.Git do
end
defp get_rev_info do
- [origin, rev] = System.cmd('git config remote.origin.url && git rev-parse --verify --quiet HEAD')
- |> iolist_to_binary
- |> String.split("\n", trim: true)
+ destructure [origin, rev],
+ System.cmd('git config remote.origin.url && git rev-parse --verify --quiet HEAD')
+ |> iolist_to_binary
+ |> String.split("\n", trim: true)
[ origin: origin, rev: rev ]
end