File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -214,10 +214,12 @@ defmodule Mix.SCM.Git do
214
214
end
215
215
end
216
216
217
+ @ rev_command 'git --git-dir=.git config remote.origin.url && git --git-dir=.git rev-parse --verify --quiet HEAD'
218
+
217
219
defp get_rev_info do
218
220
destructure [ origin , rev ] ,
219
- :os . cmd ( 'git --git-dir=.git config remote.origin.url && git --git-dir=.git rev-parse --verify --quiet HEAD' )
220
- |> IO . iodata_to_binary
221
+ :os . cmd ( @ rev_command )
222
+ |> List . to_string ( )
221
223
|> String . split ( "\n " , trim: true )
222
224
% { origin: origin , rev: rev }
223
225
end
@@ -257,7 +259,7 @@ defmodule Mix.SCM.Git do
257
259
:error ->
258
260
version =
259
261
:os . cmd ( 'git --version' )
260
- |> IO . iodata_to_binary
262
+ |> List . to_string ( )
261
263
|> parse_version
262
264
263
265
Mix.State . put ( :git_version , version )
You can’t perform that action at this time.
0 commit comments