Skip to content

Commit 877b3d9

Browse files
committed
Only try to inspect git! failures if response is a binary
1 parent 7e2b224 commit 877b3d9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/mix/lib/mix/scm/git.ex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,11 @@ defmodule Mix.SCM.Git do
270270
{response, 0} ->
271271
response
272272

273-
{response, _} ->
273+
{response, _} when is_binary(response) ->
274274
Mix.raise("Command \"git #{Enum.join(args, " ")}\" failed with reason: #{response}")
275+
276+
{_, _} ->
277+
Mix.raise("Command \"git #{Enum.join(args, " ")}\" failed")
275278
end
276279
end
277280

0 commit comments

Comments
 (0)