Skip to content

Commit

Permalink
Use reraise
Browse files Browse the repository at this point in the history
  • Loading branch information
remi committed Dec 2, 2022
1 parent 986459f commit 595f57d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/mix_audit/repo.ex
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ defmodule MixAudit.Repo do
previous_path = File.cwd!()
File.cd(repo_path)

System.cmd("git", ["pull", "--rebase", "--quiet", "origin", "main"])
System.cmd("lgit", ["pull", "--rebase", "--quiet", "origin", "main"])

File.cd(previous_path)
else
System.cmd("git", ["clone", "--quiet", @url, repo_path])
end
rescue
_ ->
raise RuntimeError, message: "It looks like `git` is not installed. Please install it and run `mix deps.audit` again."
reraise RuntimeError, message: "It looks like `git` is not installed. Please install it and run `mix deps.audit` again."
end

defp path do
Expand Down

0 comments on commit 595f57d

Please sign in to comment.