Skip to content

Commit

Permalink
Fix Git warning (elixir-lang#10707)
Browse files Browse the repository at this point in the history
It was partially solved in 74855f0
  • Loading branch information
eksperimental authored Feb 12, 2021
1 parent 4ad4cca commit d8d89b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mix/test/mix/tasks/deps_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ defmodule Mix.Tasks.DepsTest do

in_fixture("deps_status", fn ->
File.cd!("deps/ok", fn ->
System.cmd("git", ~w[-c core.hooksPath='' -c init.defaultBranch='main' init])
System.cmd("git", ~w[-c core.hooksPath='' init])
end)

Mix.Tasks.Deps.run([])
Expand Down
1 change: 1 addition & 0 deletions lib/mix/test/test_helper.exs
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ end)
## Generate Git repo fixtures
System.cmd("git", ~w[config --global user.email "[email protected]"])
System.cmd("git", ~w[config --global user.name "mix-repo"])
System.cmd("git", ~w[config --global init.defaultBranch master])

# Git repo
target = Path.expand("fixtures/git_repo", __DIR__)
Expand Down

0 comments on commit d8d89b4

Please sign in to comment.