Skip to content

Commit 911eb23

Browse files
author
José Valim
committed
Merge pull request #1083 from ericmj/mix-cmd
Remove unnecessary Mix test output
2 parents 6e5c4fe + 3e44e98 commit 911eb23

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ defmodule Mix.SCM.Git do
3838
def checkout(opts) do
3939
path = opts[:dest]
4040
location = opts[:git]
41-
command = %b[git clone --no-checkout "#{location}" "#{path}"]
41+
command = %b[git clone --no-checkout --progress "#{location}" "#{path}"]
4242

4343
run_cmd_or_raise(command)
4444
File.cd! path, fn -> do_checkout(opts) end
4545
end
4646

4747
def update(opts) do
4848
File.cd! opts[:dest], fn ->
49-
command = "git fetch --force"
49+
command = "git fetch --force --progress"
5050
if opts[:tag] do
5151
command = command <> " --tags"
5252
end

lib/mix/lib/mix/shell.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ defmodule Mix.Shell do
3939
"""
4040
def cmd(command, callback) do
4141
port = Port.open({ :spawn, to_char_list(command) },
42-
[:stream, :binary, :exit_status, :hide])
42+
[:stream, :binary, :exit_status, :hide, :use_stdio, :stderr_to_stdout])
4343
do_cmd(port, callback)
4444
end
4545

@@ -52,4 +52,4 @@ defmodule Mix.Shell do
5252
status
5353
end
5454
end
55-
end
55+
end

lib/mix/test/test_helper.exs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ System.put_env("EXUNIT_CONFIG", "none")
77
target = Path.expand("../fixtures/git_repo", __FILE__)
88

99
unless File.dir?(target) do
10-
IO.puts "Creating git repo for tests"
1110
File.mkdir_p!(Path.join(target, "lib"))
1211

1312
File.write!(Path.join(target, "mix.exs"), """)

0 commit comments

Comments
 (0)