Skip to content

Commit 6205320

Browse files
committed
Move test for matching origins to tail of lock_status check
1 parent 67566f1 commit 6205320

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ defmodule Mix.SCM.Git do
3131
File.cd!(opts[:dest], fn ->
3232
cond do
3333
lock_repo != opts[:git] -> :outdated
34-
lock_repo != get_origin -> :outdated
3534
lock_opts != get_lock_opts(opts) -> :outdated
3635
lock_rev != get_rev -> :mismatch
36+
lock_repo != get_origin -> :outdated
3737
true -> :ok
3838
end
3939
end)

0 commit comments

Comments
 (0)