Skip to content

Commit

Permalink
Use clone -b to avoid weird decryption sequencing (#420)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljguarino authored Sep 28, 2023
1 parent d580d23 commit 76cf3a8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
erlang 23.3
erlang 23.3.4.19
elixir 1.11.4
5 changes: 2 additions & 3 deletions lib/console/storage/git.ex
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ defmodule Console.Storage.Git do
def init() do
unless File.exists?(workspace()) do
with {:ok, _} <- maybe_add_username(conf(:git_url)),
{:ok, _} <- cmd("git", ["clone", conf(:git_url), workspace()]),
{:ok, _} <- cmd("git", ["clone", "-b", branch(), conf(:git_url), workspace()]),
{:ok, _} <- git("config", ["user.name", conf(:git_user_name)]),
{:ok, _} <- git("config", ["user.email", conf(:git_user_email)]),
{:ok, _} <- Plural.unlock(),
do: git("checkout", [branch()])
do: Plural.unlock()
else
pull()
end
Expand Down
1 change: 1 addition & 0 deletions lib/console/watchers/upgrade.ex
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ defmodule Console.Watchers.Upgrade do
end
end

def handle_info(:usage, %{upgrades: nil} = state), do: {:noreply, state}
def handle_info(:usage, %{upgrades: upgrades} = state) do
Logger.info "Collecting resource usage"
with true <- Console.Deployer.leader?(),
Expand Down

0 comments on commit 76cf3a8

Please sign in to comment.