Skip to content

Commit e58f568

Browse files
committed
Refactor Git options validation
1 parent 3025d63 commit e58f568

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,11 @@ defmodule Mix.SCM.Git do
206206
## Helpers
207207

208208
defp validate_git_options(opts) do
209+
opts
210+
|> validate_refspec()
211+
end
212+
213+
defp validate_refspec(opts) do
209214
case Keyword.take(opts, [:branch, :ref, :tag]) do
210215
[] ->
211216
opts

0 commit comments

Comments
 (0)