File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ defmodule Mix.SCM.Git do
66
66
67
67
def checkout ( opts ) do
68
68
path = opts [ :dest ]
69
- location = location ( opts [ :git ] )
69
+ location = opts [ :git ]
70
70
command = ~s( git clone --no-checkout --progress "#{ location } " "#{ path } ")
71
71
72
72
run_cmd_or_raise ( command )
@@ -76,7 +76,7 @@ defmodule Mix.SCM.Git do
76
76
def update ( opts ) do
77
77
File . cd! opts [ :dest ] , fn ->
78
78
# Ensures origin is set the lock repo
79
- location = location ( opts [ :git ] )
79
+ location = opts [ :git ]
80
80
update_origin ( location )
81
81
82
82
command = "git fetch --force --progress"
@@ -91,16 +91,6 @@ defmodule Mix.SCM.Git do
91
91
92
92
## Helpers
93
93
94
- defp location ( "git://github.com/" <> rest ) do
95
- if System . get_env ( "MIX_GIT_FORCE_HTTPS" ) == "1" do
96
- "https://github.com/" <> rest
97
- else
98
- "git://github.com/" <> rest
99
- end
100
- end
101
-
102
- defp location ( other ) , do: other
103
-
104
94
defp do_checkout ( opts ) do
105
95
ref = get_lock_rev ( opts [ :lock ] ) || get_opts_rev ( opts )
106
96
run_cmd_or_raise "git checkout --quiet #{ ref } "
You can’t perform that action at this time.
0 commit comments